Re: proxypass problems

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

 



Nick Kew schrieb:
On Tue, 15 Jul 2008 14:16:10 +0200
Chris Cohen <kildau-ml@xxxxxx> wrote:


Thanks for your reply. Although it's just cosmetical I don't mind reading some docs. So, could you please point me in the right direction? What can I use to rewrite the content? mod-rewrite?

http://www.apachetutor.org/admin/reverseproxies

Thanks.
I read your article two times now and have changed m configuration to the following:
<VirtualHost mirror.example.org:80>
       ServerAdmin webmaster@xxxxxxxxxxx
       ProxyRequests Off
       ProxyPass       /       http://localhost:8080/mirror/
       ProxyHTMLURLMap http://localhost:8080/mirror /
       <Location />
               ProxyPassReverse /
               SetOutputFilter proxy-html
               ProxyHTMLURLMap /       /mirror/
               ProxyHTMLURLMap /mirror /
               Order deny,allow
               Allow from 10.1.0.0/16
               Deny from all
       </Location>
</VirtualHost>

Should be ok if I understood you right. But as soon as I add ProxyHTMLURLMap / /mirror/
the path is correct but the hostname removed. I get links like:
http://pub/mirror instead of http://mirror.example.org/pub/mirror/.
The /icons path is also still wrong.
Did I understand something wrong?

--
Thanks
Chris

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