· 7 years ago · Oct 25, 2018, 06:38 PM
1ProxyPass /test http://othersite.com/test
2ProxyPassReverse /test http://othersite.com/test
3
4RewriteEngine on
5RewriteRule ^/test$ /test/ [R]
6
7ProxyRequests Off
8ProxyPreserveHost On
9
10ProxyPass /test/ http://othersite.com/test/
11ProxyPassReverse /test/ http://othersite.com/test/
12
13ProxyRequests off
14<Location /guides>
15 ProxyPass http://blog.domain.com
16 ProxyPassReverse http://blog.domain.com
17 ProxyPassReverse /
18 ProxyHTMLEnable On
19 ProxyHTMLURLMap / /guides
20 ProxyHTMLURLMap http://blogs.domain.com /guides
21 RequestHeader unset Accept-Encoding
22 RequestHeader set MySpecialHeader secretkey
23 #LogLevel proxy:debug
24</Location>
25
26$ curl -I http://localhost:81/guides/top5
27HTTP/1.1 301 Moved Permanently
28Location: http://localhost:81/guides/top5/