Forums / Install & configuration / Using ProxyPass causes redirection errors

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Using ProxyPass causes redirection errors

Author Message

Patrick Allaert

Friday 06 April 2007 4:40:38 am

Having an apache2/php5 instance on port 80 and apache2/php4 on 8080, I am using the following configuration under the first instance to have everything on port 80:

<VirtualHost *:80>
ServerName user_site
ProxyPass / http://user_site:8080/
</VirtualHost>
<VirtualHost *:80>
ServerName admin_site
ProxyPass / http://admin_site:8080/
</VirtualHost>

Trying to login on http://admin_site/, I am authenticated and then redirected to http://admin_site:8080/ where I am asked to login.
In fact, going to http://admin_site/, I see that I am well authenticated, I guess that cookies are set for the :80 instance and not for the :8080.

Every "redirect" actions will put me on the :8080 site. Any way to "fix" the "site url" ?

Note the ":8080" that I have to use in my override/site.ini:
[SiteAccessSettings]
HostMatchMapItems[]=user_site;ezwebin_site_user
HostMatchMapItems[]=admin_site:8080;ezwebin_site_admin

Or the admin_site will not be catched!

Patrick ALLAERT
http://patrickallaert.blogspot.com/

Patrick Allaert

Monday 09 April 2007 4:37:15 am

Solution was quite simple:

<VirtualHost *:80>
ServerName user_site
ProxyPass / http://user_site:8080/
ProxyPassReverse / http://user_site:8080/
</VirtualHost>
<VirtualHost *:80>
ServerName admin_site
ProxyPass / http://admin_site:8080/
ProxyPassReverse / http://admin_site:8080/
</VirtualHost>

Thanks to Paul Borgermans!

Patrick ALLAERT
http://patrickallaert.blogspot.com/