VPS侦探论坛

 找回密码
 注册
查看: 4689|回复: 1

/root/lnmp restart 出现错误

[复制链接]
发表于 2012-7-27 21:53:34 | 显示全部楼层 |阅读模式

运行/root/lnmp restart

出现
  1. Starting LNMP...
  2. [warn]: server name "www.bmxxt.com/city/as" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:5
  3. [warn]: server name "www.bmxxt.com/city/ay" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:33
  4. [warn]: server name "www.bmxxt.com/city/aq" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:61
  5. [warn]: server name "www.bmxxt.com/city/al" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:89
  6. [warn]: server name "www.bmxxt.com/city/anshun" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:117
  7. [warn]: server name "www.bmxxt.com/city/ab" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:145
  8. [warn]: server name "www.bmxxt.com/city/als" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:173
  9. [warn]: server name "www.bmxxt.com/city/ak" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:201
  10. [warn]: server name "www.bmxxt.com/city/aks" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:229
  11. [warn]: server name "www.bmxxt.com/city/alt" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:257
  12. [warn]: server name "www.bmxxt.com/city/bd" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:313
  13. [warn]: server name "www.bmxxt.com/city/bt" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:341
复制代码



查看了conf的文件
  1. server
  2.         {
  3.                 listen       80;
  4.                 server_name www.bmxxt.com/city/as;
  5.                 index index.html index.htm index.php default.html default.htm default.php;
  6.                 root  /home/wwwroot/bmxxt.com/city/as;

  7.                 include none.conf;
  8.                 location ~ .*\.(php|php5)?$
  9.                         {
  10.                                 fastcgi_pass  unix:/tmp/php-cgi.sock;
  11.                                 fastcgi_index index.php;
  12.                                 include fcgi.conf;
  13.                         }

  14.                 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  15.                         {
  16.                                 expires      30d;
  17.                         }

  18.                 location ~ .*\.(js|css)?$
  19.                         {
  20.                                 expires      12h;
  21.                         }

  22.         }


  23. server
  24.         {
  25.                 listen       80;
  26.                 server_name www.bmxxt.com/city/ay;
  27.                 index index.html index.htm index.php default.html default.htm default.php;
  28.                 root  /home/wwwroot/bmxxt.com/city/ay;

  29.                 include none.conf;
  30.                 location ~ .*\.(php|php5)?$
  31.                         {
  32.                                 fastcgi_pass  unix:/tmp/php-cgi.sock;
  33.                                 fastcgi_index index.php;
  34.                                 include fcgi.conf;
  35.                         }

  36.                 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  37.                         {
  38.                                 expires      30d;
  39.                         }

  40.                 location ~ .*\.(js|css)?$
  41.                         {
  42.                                 expires      12h;
  43.                         }

  44.         }
复制代码


感觉都没错啊

网站可以正常访问
伪静态也都没问题

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-7-28 08:23:16 | 显示全部楼层


没见过,这种server_name加目录的用法
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 23:53 , Processed in 0.026282 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表