httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <tevans...@googlemail.com>
Subject Re: [users@httpd] rewrite rule for mingle
Date Fri, 11 Jun 2010 15:31:16 GMT
OK, that makes everything clearer.

BTW, you are proxying /mingle/. That final / has meaning, please be
precise about whether something has a trailing slash or not. Your
first examples of attempting to access '/mingle/' through the proxy
were requesting the URL '/mingle', which is why you got 404s. You did
later show logs where you had requested it properly, so I could
understand, but you must use the correct URLs, or things _wont_ work.

OK, so when you go to the proxy and request a mingle URL, the mingle
server returns this Location header:
Location: http://site.mydomain.com/profile/login

When you go directly, by specifying the IP address, the mingle server
returns this Location header:
Location: http://localhost:8080/profile/login

When this is processed by the proxy, it must be rewritten to this:
Location: http://site.mydomain.com/mingle/profile/login

so change this line in the configuration:
ProxyPassReverse /mingle/ http://192.168.1.10:8080/

to this:
ProxyPassReverse /mingle/ http://site.mydomain.com/

ProxyPassReverse roughly means this:
For each appropriate header, search for the second argument in the
value, and if found, replace with the first argument and reconstruct
the protocol, host and port according to the host headers/vhost name.

Restart apache, and re-do the tests.

Tom

---------------------------------------------------------------------
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


Mime
View raw message