在安装系统的时候,官方提供的一个配置信息如下,是Nginx的,但是我是apache的服务器,希望能给转换一下,谢谢
第一段代码
- #PROXY-START/
- location ^~ /
- {
- proxy_pass http://127.0.0.1:8324;
- proxy_http_version 1.1;
- proxy_read_timeout 360s;
- proxy_redirect off;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- 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_fileLzXnun8E 0;
- if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
- {
- set $static_fileLzXnun8E 1;
- expires 12h;
- }
- if ( $static_fileLzXnun8E = 0 )
- {
- add_header Cache-Control no-cache;
- }
- }
- #PROXY-END/
第二段代码 ???
location /notice { proxy_pass http://127.0.0.1:20002/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header X-real-ip $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; } location /msg { proxy_pass http://127.0.0.1:20003/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header X-real-ip $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; }
|
|