Re: proxypass problems

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

 



On Tue, Jul 15, 2008 at 14:16, Chris Cohen <kildau-ml@xxxxxx> wrote:
> On Tuesday 15 July 2008 10:31:48 Krist van Besien wrote:
>> On Mon, Jul 14, 2008 at 13:27, Chris Cohen <kildau-ml@xxxxxx> wrote:
>> > ... and it actually works. I can access all the files. BUT
>> > Apache is looking for /icons in the wrong directory and (what is
>> > much more annoying) the autoindex module generates wrong links.
>> > For example:
>> > I am in the dir /pub/software/ and want to go into the "Parent
>> > Directory", but the link points to /mirror/pub/ instead of /pub/.
>>
>> The links are generated by your mirror server. This mirror server
>> does not see requests for /pub/software but for /mirror/pub/software,
>> and thus generates what are, from its perspective, correct links.
>>
>> You probably though that ProxyPassReverse would fix that, but it
>> doesn't, as only redirects are rewritten, not the content.
>>
>> You either need to use something that rewrites the content generate
>> by your mirror server (but this is complicated for a newbie) or
>> alternatively also proxy /mirror to your mirror server.
>
> 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?

This place is a good start:
http://www.apachetutor.org/admin/reverseproxies

You will need mod_proxy_html, which you will have to compile yourself.

Krist


-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

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