Hi -

I have 2 questions, one might be off topic for the list, so please be gentle about it 
- seems to have been a rough week for OT posters here.....


Anyway my situation is this:

I want to do a reverse proxy of an external site using Apache:

<VirtualHost prague>
ProxyRequests on
ProxyPass / http://www.externalsite.com
ProxyPassReverse / http://www.externalsite.com
ServerName prague
</VirtualHost>

This works fine AFICT except if there is a page on the remote site that has a form or 
other link that uses POST.

The maybe off-topic question is: Is this documented anywhere? I haven't been able to 
find a good explanation why this is. Is there a workaround? 

I should note that I am using mod_proxy rather than mod_rewrite because it is my 
(possibly incorrect) understanding that requests proxied via mod_rewrite will not end 
up in my local logs. I haven't actually tested that yet, but  in this case I strongly 
prefer to have a record of the request in the logs. If mod_rewrite would leave me a 
record in the logs and solve the POST issue, then that is probably an acceptable 
workaround.

Anyway, pointers to help or explanations on this question are welcomed.

More on topic for this list is this question:

I would like the local server to examine the HTML for the remote server and possibly 
modify it before sending it to the client. I would like to write a mod_perl handler 
for this, but I am not sure which phase I should do it at. 

[time passes ...] Oh wait, I see there is a section in the Eagle book (p 374) that 
shows how to do that - are there any gotchas or more modern examples I should know 
about?

Thanks in advance!

GV

Reply via email to