niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
· nixdoc.net · man pages · Linux HOWTOs · FreeBSD Tips · Forums
navigation Forum index » Apps » Apache
help with cookies and reverse proxy
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
alanterra
*nix forums beginner


Joined: 28 Feb 2009
Posts: 1

PostPosted: Sat Feb 28, 2009 7:37 am    Post subject: help with cookies and reverse proxy Reply with quote

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
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Fri Sep 03, 2010 1:43 pm | All times are GMT
navigation Forum index » Apps » Apache
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Postfix reverse DNS request issue? mihai Postfix 2 Fri Jan 29, 2010 11:28 am
No new posts Mail through Proxy arunvasan.r Postfix 0 Wed Apr 15, 2009 4:41 pm
No new posts Insert header and footer in every page served by proxy ehmedk Apache 0 Tue Apr 22, 2008 6:27 pm
No new posts transparent proxy Crystal Akimoto Squid 3 Fri Jan 26, 2007 5:58 am
No new posts Urgent and imp. Making Squid 2.6 stable as tranpsarent proxy SHERDIL Squid 0 Thu Aug 03, 2006 11:18 am

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum |  email marketing service
 
Sponsors: Watch Anime Online | Loans | Free Ecards | Canon 500d | Find jobs
Privacy Policy
[ Time: 0.0580s ][ Queries: 17 (0.0317s) ][ GZIP on - Debug on ]