You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tapas Mishra <mi...@gmail.com> on 2010/07/05 07:45:39 UTC
[users@httpd] using ProxyPreserveReverseCookie
I am not clear with
ProxyPassReverseCookieDomain and ProxyPassReverseCookiePath
I checked this page
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse
but I am not able to understand it
I am having 8 websites running on a machine one of them is not getting
connected via internet
My virtual host configuration is as follows
I want to use ProxyPassReverseCookieDomain
2 websites are not working while rest are working in this setup
is it some how possible to make it I am totally confused
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName mydomain.com
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyPass /something1 http://192.168.1.5/something1
ProxyPassReverse /something1 http://192.168.1.5/something1
ProxyPass /something2 http://192.168.1.5/something2/www/
ProxyPassReverse /something2 http://192.168.1.5/something2/www/
ProxyPass /something3 http://192.168.1.5/something3/
ProxyPassReverse /something3 http://192.168.1.5/something3/
ProxyPass /something4 http://192.168.1.5/something4/
ProxyPassReverse /something4 http://192.168.1.5/something4/
ProxyPass /something5 http://192.168.1.5/something5
ProxyPassReverse /something5 http://192.168.1.5/something5
ProxyPass /something6 http://192.168.1.5:8080/something6
ProxyPassReverse /something6 http://192.168.1.5:8080/something6
ProxyPass /something7 http://192.168.1.5:6060/portal
ProxyPassReverse /something7 http://192.168.1.5:6060/portal
ProxyPass / http://192.168.1.5/
ProxyPassReverse / http://192.168.1.5/
ErrorLog /var/log/apache2/mydomain_error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug
CustomLog /var/log/apache2/mydomain_access.log combined
CustomLog /var/log/apache2/mydomain-resp_log resp
LogFormat "%D %{X-Forwarded-For}i %t" resp
</VirtualHost>
--
Tapas
---------------------------------------------------------------------
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
Re: [users@httpd] using ProxyPreserveReverseCookie
Posted by alin vasile <al...@yahoo.com>.
Try accessing the internet part with Firefox and an add-on that logs the http communication and check there if the cookies have the same domain as your internet address.
________________________________
From: Tapas Mishra <mi...@gmail.com>
To: users@httpd.apache.org
Sent: Mon, July 5, 2010 2:10:01 PM
Subject: Re: [users@httpd] using ProxyPreserveReverseCookie
>From intranet they are working absolutely perfect.But from internet it
is not working.
How do I check the cookies you are saying I do not have any idea to
this problem of cookies.
see this link
http://www.atutor.ca/view/7/20279/1.html
this is what I am trying to do.
--
Tapas
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: [users@httpd] using ProxyPreserveReverseCookie
Posted by Tapas Mishra <mi...@gmail.com>.
>From intranet they are working absolutely perfect.But from internet it
is not working.
How do I check the cookies you are saying I do not have any idea to
this problem of cookies.
see this link
http://www.atutor.ca/view/7/20279/1.html
this is what I am trying to do.
--
Tapas
---------------------------------------------------------------------
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
Re: [users@httpd] using ProxyPreserveReverseCookie
Posted by alin vasile <al...@yahoo.com>.
try logging in both from the intranet and internet and check the http communication maybe the cookies are sent for the wrong domains.
________________________________
From: Tapas Mishra <mi...@gmail.com>
To: users@httpd.apache.org
Sent: Mon, July 5, 2010 12:07:48 PM
Subject: Re: [users@httpd] using ProxyPreserveReverseCookie
On two websites when people are logging they get a session if they
login from inside LAN.
but if people login from internet then it is not possible for them to login.
These applications are not developed by me so some one suggested me
X-Forwarded-For header is not being properly handled by
these applications so this problem is coming.
I have not developed any of those applications
I downloaded them from internet and I am trying to use them.
If some one is trying to reach them by internet i.e. login then this
problem is coming.
--
Tapas
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: [users@httpd] using ProxyPreserveReverseCookie
Posted by Tapas Mishra <mi...@gmail.com>.
On two websites when people are logging they get a session if they
login from inside LAN.
but if people login from internet then it is not possible for them to login.
These applications are not developed by me so some one suggested me
X-Forwarded-For header is not being properly handled by
these applications so this problem is coming.
I have not developed any of those applications
I downloaded them from internet and I am trying to use them.
If some one is trying to reach them by internet i.e. login then this
problem is coming.
--
Tapas
---------------------------------------------------------------------
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
Re: [users@httpd] using ProxyPreserveReverseCookie
Posted by alin vasile <al...@yahoo.com>.
What do you mean by
"My virtual host configuration is as follows
I want to use
ProxyPassReverseCookieDomain
2 websites are not working while rest
are working in this setup"
What doesn't work?
________________________________
From: Tapas Mishra <mi...@gmail.com>
To: users@httpd.apache.org
Sent: Mon, July 5, 2010 8:45:39 AM
Subject: [users@httpd] using ProxyPreserveReverseCookie
I am not clear with
ProxyPassReverseCookieDomain and ProxyPassReverseCookiePath
I checked this page
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse
but I am not able to understand it
I am having 8 websites running on a machine one of them is not getting
connected via internet
My virtual host configuration is as follows
I want to use ProxyPassReverseCookieDomain
2 websites are not working while rest are working in this setup
is it some how possible to make it I am totally confused
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName mydomain.com
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyPass /something1 http://192.168.1.5/something1
ProxyPassReverse /something1 http://192.168.1.5/something1
ProxyPass /something2 http://192.168.1.5/something2/www/
ProxyPassReverse /something2 http://192.168.1.5/something2/www/
ProxyPass /something3 http://192.168.1.5/something3/
ProxyPassReverse /something3 http://192.168.1.5/something3/
ProxyPass /something4 http://192.168.1.5/something4/
ProxyPassReverse /something4 http://192.168.1.5/something4/
ProxyPass /something5 http://192.168.1.5/something5
ProxyPassReverse /something5 http://192.168.1.5/something5
ProxyPass /something6 http://192.168.1.5:8080/something6
ProxyPassReverse /something6 http://192.168.1.5:8080/something6
ProxyPass /something7 http://192.168.1.5:6060/portal
ProxyPassReverse /something7 http://192.168.1.5:6060/portal
ProxyPass / http://192.168.1.5/
ProxyPassReverse / http://192.168.1.5/
ErrorLog /var/log/apache2/mydomain_error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug
CustomLog /var/log/apache2/mydomain_access.log combined
CustomLog /var/log/apache2/mydomain-resp_log resp
LogFormat "%D %{X-Forwarded-For}i %t" resp
</VirtualHost>
--
Tapas
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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