Mod rewrite nginx proxy\u传递并重写seafile代理
我正在Plesk vm(公共)后面运行一个seafile vm(专用网络) 现在我正在使用apache作为代理,但我想知道如何让这个安装程序只使用nginx运行 这项工作:Mod rewrite nginx proxy\u传递并重写seafile代理,mod-rewrite,proxy,reverse-proxy,nginx-location,seafile-server,Mod Rewrite,Proxy,Reverse Proxy,Nginx Location,Seafile Server,我正在Plesk vm(公共)后面运行一个seafile vm(专用网络) 现在我正在使用apache作为代理,但我想知道如何让这个安装程序只使用nginx运行 这项工作: RewriteEngine On ProxyPass /seafhttp http://192.168.10.102:8082 ProxyPassReverse /seafhttp http://192.168.10.102:8082 RewriteRule ^/seafhttp - [QSA,L] RewriteRul
RewriteEngine On
ProxyPass /seafhttp http://192.168.10.102:8082
ProxyPassReverse /seafhttp http://192.168.10.102:8082
RewriteRule ^/seafhttp - [QSA,L]
RewriteRule ^/(.*) http://192.168.10.102:8000/$1 [P]
ProxyPassReverse / http://192.168.10.102:8000/
这并不是:
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://192.168.10.102:8082;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;
}
location ~ / {
proxy_pass http://192.168.10.101:8065;
}
但这同样有效:
RewriteEngine On
RewriteRule ^/(.*) http://192.168.10.102:8000/$1 [P]
ProxyPassReverse / http://192.168.10.102:8000/
+
我错过了什么
谢谢
最大值固定在以下位置:
location ^~ /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://192.168.10.102:8082;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;
}
location ~ / {
proxy_pass http://192.168.10.102:8000;
}
location ^~ /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://192.168.10.102:8082;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;
}
location ~ / {
proxy_pass http://192.168.10.102:8000;
}