nginx中,配置ip多埠訪問
阿新 • • 發佈:2018-12-05
1、新增server
server { listen 8001; server_name localhost; root /home/ebayerp; location / { index index.html index.htm index.php; } location ~ \.php$ { # root "/home/ebayerp"; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } access_log /home/wwwlogs/ebayerp-access.log; }
重啟nginx服務,效果如下
如果訪問不了,檢視
設定關閉:
即可訪問。