Reverse proxy issue
3 posts
• Page 1 of 1
Reverse proxy issue
We are using build 148 of Ape here is my config
<Location /discoverer/>
ProxyMaxForwards 5
ProxyPreserveHost On
ProxyReceiveBufferSize 2048
ProxyTimeout 60
ProxyPass http://scends2.sysadmin.suny.edu:7778/discoverer/ ttl=60 keepalive=on
ProxyPassReverse http://scends2.sysadmin.suny.edu:7778/discoverer/
</Location>
It works in that it does properly send traffice off the server. However, I want the orignating host url to remain unchanged.
So when someone enter myurl.com/discoverer there're url remains unchanged. They never see scends2.
Any ideas?
thank you in advance.
-Alex
<Location /discoverer/>
ProxyMaxForwards 5
ProxyPreserveHost On
ProxyReceiveBufferSize 2048
ProxyTimeout 60
ProxyPass http://scends2.sysadmin.suny.edu:7778/discoverer/ ttl=60 keepalive=on
ProxyPassReverse http://scends2.sysadmin.suny.edu:7778/discoverer/
</Location>
It works in that it does properly send traffice off the server. However, I want the orignating host url to remain unchanged.
So when someone enter myurl.com/discoverer there're url remains unchanged. They never see scends2.
Any ideas?
thank you in advance.
-Alex
Re: Reverse proxy issue
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
X-REQUEST-URI: /discoverer/app/urlapi
X-Rewrite-Url: /discoverer/app/urlapi
X-Original-Url: /discoverer/app/urlapi
Max-Forwards: 10
X-Forwarded-Host: dev.suny.edu
X-Forwarded-For: 141.254.104.151
X-Forwarded-Server: 141.254.104.151
Host: scends2.sysadmin.suny.edu:7778
Connection: Close
It appears that ProxyPreserveHost On/Off is not effecting this traffic. The Host: value should be the website url and not the server we are proxying too.
X-REQUEST-URI: /discoverer/app/urlapi
X-Rewrite-Url: /discoverer/app/urlapi
X-Original-Url: /discoverer/app/urlapi
Max-Forwards: 10
X-Forwarded-Host: dev.suny.edu
X-Forwarded-For: 141.254.104.151
X-Forwarded-Server: 141.254.104.151
Host: scends2.sysadmin.suny.edu:7778
Connection: Close
It appears that ProxyPreserveHost On/Off is not effecting this traffic. The Host: value should be the website url and not the server we are proxying too.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests