Re: rewrite rule for mingle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux