给你看个正常映射后的反向代理的配置文件
- #PROXY-START/
- location ~* \.(php|jsp|cgi|asp|aspx)$
- {
- proxy_pass http://ccssl.dapaoit.com:10088;
- proxy_set_header Host ccssl.dapaoit.com;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header REMOTE-HOST $remote_addr;
- }
- location /
- {
- proxy_pass http://ccssl.dapaoit.com:10088;
- proxy_set_header Host ccssl.dapaoit.com;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header REMOTE-HOST $remote_addr;
-
- add_header X-Cache $upstream_cache_status;
-
- #Set Nginx Cache
-
- add_header Cache-Control no-cache;
- expires 12h;
- }
- #PROXY-END/
复制代码
|