alanterra *nix forums beginner
Joined: 28 Feb 2009
Posts: 1
|
Posted: Sat Feb 28, 2009 7:37 am Post subject:
help with cookies and reverse proxy
|
|
|
Hi
Sorry, but I'm a newbie and perhaps in over my depth.
I need to access a site, call it www.site.com, that filters access using IPs. So we need to set up an authorized computer as a reverse proxy to allow access from home. So if the authorized computer is at 01.02.03.04 then I would use the URI http://01.02.03.04/site/url in order to get to http://www.site.com/url.
I have followed various recipes, and now my httpd.conf file looks like:
| Code: |
LoadFile /usr/lib/libxml2.so
LoadModule proxy_html_module modules/mod_proxy_html.so
<Proxy *>
Order Deny,Allow
Deny from all
Allow from 12.13.14.15
</Proxy>
ProxyHTMLLinks a href
ProxyHTMLLinks area href
ProxyHTMLLinks link href
ProxyHTMLLinks img src longdesc usemap
ProxyHTMLLinks object classid codebase data usemap
ProxyHTMLLinks q cite
ProxyHTMLLinks blockquote cite
ProxyHTMLLinks ins cite
ProxyHTMLLinks del cite
ProxyHTMLLinks form action
ProxyHTMLLinks input src usemap
ProxyHTMLLinks head profile
ProxyHTMLLinks base href
ProxyHTMLLinks script src for
ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \
onmouseover onmousemove onmouseout onkeypress \
onkeydown onkeyup onfocus onblur onload \
onunload onsubmit onreset onselect onchange
ProxyHTMLExtended On
ProxyPass /site/ http://www.site.com/
ProxyHTMLURLMap http://www.site.com /site
ProxyHTMLURLMap http://site.com /site
ProxyPassReverseCookieDomain 01.02.03.04 www.site.com
<Location /site/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /site/
ProxyHTMLURLMap http://site.com /site
ProxyHTMLURLMap http://www.site.com /site
RequestHeader unset Accept-Encoding
</Location>
|
Cookies on my computer (coming thru the reverse proxy) look like
Name: ARPT
Content: ...
Host: 01.02.03.04
Path: /
While site.com is looking for cookies with Host = www.site.com. I thought the ProxyPassReverseCookieDomain directive would make this change, but so far no success.
Help?
TIA |
|