您好,还是不可以,这是反向代理的文件
- #PROXY-START/root/voiceTemp/
- location ^~ /root/voicetemp
- {
- proxy_pass http://127.0.0.1:30001;
- proxy_set_header Host $host;
- 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
- set $static_fileI2wlPSFC 0;
- if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
- {
- set $static_fileI2wlPSFC 1;
- expires 12h;
- }
- if ( $static_fileI2wlPSFC = 0 )
- {
- add_header Cache-Control no-cache;
- }
- }
- #PROXY-END/root/voiceTemp/
复制代码 |