Nginx反向代理配置文件
Posted 宗帅
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx反向代理配置文件相关的知识,希望对你有一定的参考价值。
server { listen 192.168.66.88:8005; server_name 192.168.66.88:8005; root E:/Upays/public/; index index.php index.html; log_not_found off; access_log logs/upay-access.log; charset utf-8; location ~ /\. { deny all; } location = /favicon.ico { } location = /robots.txt { } location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } location ~ \.php$ { try_files $uri /index.php =404; fastcgi_pass 127.0.0.1:9054; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; include fastcgi_params; }
location /newsite/ {
proxy_pass http://192.168.66.89:8002;
proxy_redirect default ;
} }
以上是关于Nginx反向代理配置文件的主要内容,如果未能解决你的问题,请参考以下文章