Apache reverse proxy

This is a discussion on Apache reverse proxy within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hello group! I would appreciate if someone could help me. I use a reverse proxy on Apache. The most simple &...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-23-2007
Branimir Pejakovic
 
Posts: n/a
Default Apache reverse proxy

Hello group!

I would appreciate if someone could help me. I use a reverse proxy on
Apache. The most simple "case" works like a charm:

For example:

ProxyPass /goProxy/ http://unix.example.com/
ProxyPassReverse /goProxy/ http://unix.example.com/

but when I want to do this:

ProxyPass /goProxy/ http://unix.example.com/script.php?value=1
ProxyPassReverse /goProxy/ http://unix.example.com/script.php?value=1

I get an error 404. Now, I know that I have to use mod_rewrite and I
tried that but with partial results. It does what I want but with
unwanted effect - when I go to URL of a server that "proxies" request to
the backend server (www.example.com), it doesn't show its index.html but
it still proxies requests to the backend server. I have been trying this
for two days. I am a beginner concernig mod_rewrite and I am begging if
anyone could give me some general mod_rewrite rules for the example
mentioned above.

Thank you in advance!

Branimir
  #2 (permalink)  
Old 06-26-2007
Jeff
 
Posts: n/a
Default Re: Apache reverse proxy

Branimir Pejakovic wrote:

> I would appreciate if someone could help me. I use a reverse proxy on
> Apache. The most simple "case" works like a charm:
>
> For example:
>
> ProxyPass /goProxy/ http://unix.example.com/
> ProxyPassReverse /goProxy/ http://unix.example.com/
>
> but when I want to do this:
>
> ProxyPass /goProxy/ http://unix.example.com/script.php?value=1
> ProxyPassReverse /goProxy/ http://unix.example.com/script.php?value=1
>
> I get an error 404. Now, I know that I have to use mod_rewrite and I
> tried that but with partial results. It does what I want but with
> unwanted effect - when I go to URL of a server that "proxies" request to
> the backend server (www.example.com), it doesn't show its index.html but
> it still proxies requests to the backend server. I have been trying this
> for two days. I am a beginner concernig mod_rewrite and I am begging if
> anyone could give me some general mod_rewrite rules for the example
> mentioned above.


It's not clear to me exactly what your problem is, but I would
recommend reading the web page below. I managed to implement a
rather complex reverse proxy with the information provided here.

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

Good Luck,

Jeff
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:41 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0