主机宝linux怎么取消ip访问默认页面
收起
小常
2014-12-25 22:00:02
10479
0
2
条回答
写回答
取消
提交回答
-
server {
listen 80 default;
server_name "";
root /a/apps/zhujibao/manager/linuxdef;
index index.html index.htm index.shtml index.php;
location ~ \.php$ {
fastcgi_pass unix:/dev/shm/php.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
可以改为:
server {
listen 80 default;
server_name "";
return 404;
root /a/apps/zhujibao/manager/linuxdef;
index index.html index.htm index.shtml index.php;
location ~ \.php$ {
fastcgi_pass unix:/dev/shm/php.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
2015-01-27 17:19:33
-