/root/lnmp restart 出现错误
运行/root/lnmp restart出现
Starting LNMP...
: server name "www.bmxxt.com/city/as" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:5
: server name "www.bmxxt.com/city/ay" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:33
: server name "www.bmxxt.com/city/aq" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:61
: server name "www.bmxxt.com/city/al" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:89
: server name "www.bmxxt.com/city/anshun" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:117
: server name "www.bmxxt.com/city/ab" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:145
: server name "www.bmxxt.com/city/als" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:173
: server name "www.bmxxt.com/city/ak" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:201
: server name "www.bmxxt.com/city/aks" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:229
: server name "www.bmxxt.com/city/alt" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:257
: server name "www.bmxxt.com/city/bd" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:313
: server name "www.bmxxt.com/city/bt" has strange symbols in /usr/local/nginx/conf/vhost/www.bmxxt.com.conf:341
查看了conf的文件
server
{
listen 80;
server_name www.bmxxt.com/city/as;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/bmxxt.com/city/as;
include none.conf;
location ~ .*\.(php|php5)?$
{
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
}
server
{
listen 80;
server_name www.bmxxt.com/city/ay;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/bmxxt.com/city/ay;
include none.conf;
location ~ .*\.(php|php5)?$
{
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
}
感觉都没错啊
网站可以正常访问
伪静态也都没问题
没见过,这种server_name加目录的用法
页:
[1]