Nginx 允许IP浏览服务器目录

来源:互联网 发布:加盟淘宝代理 编辑:程序博客网 时间:2024/06/11 13:37

server {    listen 80 default_server;     server_name _  www.show.com;    root /data/www;        location / {             index  index.php index.html index.htm;        }           location ~ \.php$ {            fastcgi_pass   127.0.0.1:9000;            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;            include        fastcgi_params;        }}

Nginx服务器允许IP浏览服务器目录。

设置方法:

1、    listen 80 default_server;
2、    server_name _  www.show.com;