You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chris <at...@gmail.com> on 2009/07/30 10:23:19 UTC

[users@httpd] reverse proxy mapping not working properly

I've been trying to configure a reverse HTTP proxy on RHEL 5.3 with
httpd-2.2.3-22.el5_3.2. I have three virtual hosts on the same IP and
I would like to setup
reverse proxy for them.

The following are my internal servers:

http://marketing.company.tld:30000 ------> 192.168.25.25

http://services.company.tld:28978 ------> 192.168.25.25

http://helpdesk.company.tld:39485 ------> 192.168.25.25

Reverse proxy is setup on /etc/httpd/conf.d/ssl.conf file (reverse
proxy runs on port 443 over SSL; port 80 is disabled)

<IfModule mod_proxy.c>
ProxyRequests Off

<Proxy *>
    Order deny,allow
    Deny from all
    Allow from .example.com
</Proxy>

ProxyPass        /marketing/ http://192.168.25.25:30000
ProxyPassReverse        /marketing/ http://192.168.25.25:30000

<Location /marketing/>
ProxyPassReverse /
Order allow,deny
Allow from all
</Location>

</IfModule>

I get File Not Found error. Could anyone please give me some example
on how to get this thing working?

Many thanks.

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


Re: [users@httpd] reverse proxy mapping not working properly

Posted by Chris <at...@gmail.com>.
2009/7/30 Igor Galić <i....@brainsware.org>:
>
> Hi Cris,
>
> [Snip]
>
>> <IfModule mod_proxy.c>
>> ProxyRequests Off
>>
>> <Proxy *>
>>     Order deny,allow
>>     Deny from all
>>     Allow from .example.com
>> </Proxy>
>>
>> ProxyPass        /marketing/ http://192.168.25.25:30000
>
> I would get rid of this line:
>
>> ProxyPassReverse        /marketing/ http://192.168.25.25:30000
>
> The <Location stuff> should suffice.
>
>
>> I get File Not Found error. Could anyone please give me some example
>> on how to get this thing working?
>
> Where? On the frontends? On the backends?
> NEEDINFO.

In the front end: when someone types: https://reverseproxy.domain.tld
they get to http://192.168.25.25:30000/marketing - which does not
exist (in the back-end)

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


Re: [users@httpd] reverse proxy mapping not working properly

Posted by Igor Galić <i....@brainsware.org>.
Hi Cris,

[Snip]
 
> <IfModule mod_proxy.c>
> ProxyRequests Off
> 
> <Proxy *>
>     Order deny,allow
>     Deny from all
>     Allow from .example.com
> </Proxy>
> 
> ProxyPass        /marketing/ http://192.168.25.25:30000

I would get rid of this line:

> ProxyPassReverse        /marketing/ http://192.168.25.25:30000

The <Location stuff> should suffice.

 
> I get File Not Found error. Could anyone please give me some example
> on how to get this thing working?

Where? On the frontends? On the backends?
NEEDINFO.
 
> Many thanks.

Bye,
Igor

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