LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-24-2012, 03:04 AM   #1
esojourn
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Rep: Reputation: Disabled
Reverse proxy problem, cookies are missing


I'm running a webserver which behind apache reverse proxy.
everything works fine except the cookie.

This is my conf which is not work.
Code:
ServerName public.domain.com
ProxyPreserveHost Off
RewriteEngine On
RewriteOptions inherit
        ProxyRequests Off
        ProxyPassInterpolateEnv Off
        ProxyPass / http://192.168.122.2/
        ProxyPassReverse / http://192.168.122.2/
        ProxyPassReverseCookieDomain  192.168.122.2 public.domain.com
#       ProxyPassReverseCookiePath / /

And This configuration works, cookie appears. but I don't want /a in path. I need to direct all domain into the webserver that behind reverse proxy.

Code:
ProxyPreserveHost Off
RewriteEngine On
RewriteOptions inherit

        ProxyRequests Off
        ProxyPassInterpolateEnv Off
        ProxyPass /a http://192.168.122.2/
        ProxyPassReverse /a http://192.168.122.2/
        ProxyPassReverseCookieDomain  192.168.122.2 public.domain
       ProxyPassReverseCookiePath /a /
Is there anyone can help? thanks in advance!!
 
Old 10-24-2012, 04:17 AM   #2
esojourn
LQ Newbie
 
Registered: Jul 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Important update:
I don't see any cookie under Firefox - Firebug. (but from another site without proxy, all cookies are there)
But I get cookies from Chrome and IE9 developer tool. Very weird.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse proxy rewrite http problem polishpt Linux - Server 1 03-19-2012 06:07 PM
[SOLVED] Apache reverse proxy problem with vhost omgs Linux - Software 8 02-15-2012 02:27 PM
[SOLVED] Apache Reverse Proxy - problem with configuration dlugasx Linux - Server 4 10-04-2010 06:44 AM
problem with RSS feed and reverse proxy changes deesto Linux - Networking 2 05-14-2009 10:16 AM
Squid reverse proxy problem (HTTPS to HTTP) RussP Linux - Networking 1 10-02-2008 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration