You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Shahzad Bhatti <sb...@issintl.com> on 2005/08/23 17:30:03 UTC

[users@httpd] Cookies with Reverse Proxy Server

Hello,
 I am setting up Apache 2.1.7 on Redhat 3.0 as reverse proxy server.
I have two applications setup "cas" is a single-sign-on service and
"wcs" is the actual application. When single-sign on service logs in,
it saves authentication in a cookie. I am trying to use 
ProxyPassReverseCookiePath to change the cookie path, but I still
see internal path. here is my configuration:
    ProxyPass /cas https://wd-cassrv1:8443/cas
    ProxyPassReverse /cas https://wd-cassrv1:8443/cas
    ProxyPassReverseCookiePath /cas https://wd-cassrv1:8443/cas
    ProxyHTMLURLMap	 https://wd-cassrv1:8443/cas	/cas

    ProxyPass /wcs http://wd-prtlsrv1:8080/wcs
    ProxyPassReverse /wcs http://wd-prtlsrv1:8080/wcs
    ProxyPassReverseCookiePath /wcs http://wd-prtlsrv1:8080/wcs
    ProxyHTMLURLMap http://wd-prtlsrv1:8080/wcs	/wcs

But cookies were
Set-Cookie: JSESSIONID=F6B1E759324F5B408CF07C710F29E53E; Path=http://wd-prtlsrv1:8080/wcs
Set-Cookie: CASTGC=TGC-12-mnNPeFDzImacf20t5xUfTQHB0uOT8qFjSRxsmI3fHVx9vHYTOf; Path=https://wd-cassrv1:8443/cas; Secure
Set-Cookie: CASPRIVACY=enabled; Path=https://wd-cassrv1:8443/cas; Secure

Any suggestions.
Regards,
Shahzad Bhatti
Integrated Software Specialists
http://www.issintl.com
1901 North Roselle Road, Suite 450
Schaumburg, IL 60195
Phone: 847-558-5342
Fax: 847-240-5073



-----Original Message-----
From: Spike Burkhardt [mailto:burkhardt.richard@ssd.loral.com]
Sent: Tuesday, August 23, 2005 10:13 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] mass virtual hosting


Isabelle,

  In your VirtualHost directive try:

<VirtualHost http://www2n.unil.ch:8080 http://www2n.unil.ch>

spike

Isabelle Moullet wrote:

> Bonjour,
>
> I am trying to install mass virtual hosting with Apache 2.0.53.
> I have the the following instructions in my conf file:
> #
> LoadModule vhost_alias_module modules/mod_vhost_alias.so
>
> UseCanonicalName Off
> NameVirtualHost 130.223.27.40
> DirectoryIndex index.html index.html.var
>
> <VirtualHost 130.223.27.40>
>
>      ServerAdmin webadmin@unil.ch
>
>     ServerName www2n.unil.ch
>
>      VirtualDocumentRoot /data/%p
>      DirectoryIndex index.html
>
>      CustomLog /var/log/httpd/main/access_log combined
>      ErrorLog  /var/log/httpd/main/error_log
>
>      ScriptAlias /cgi-bin /data/cgi-bin
>      Options +Indexes
>      IndexOptions FancyIndexing
>
> </VirtualHost>
>
> The documents are correctly served by /data/80 if the URL is
> http://www2n.unil.ch.
>
> BUT the documents are not served for http://www2n.unil.ch:8080 unless I
> specified explicitely the filename such as
> http://www2n.unil.ch:8080/index.html.
>
> Any idea of which directive I have to add to get the default index.html
> file for both cases http://www2n.unil.ch:8080 AND http://www2n.unil.ch
>
> Thanks for your help
>
>
>
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org