You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Joost Heer, de" <j....@atriummc.nl> on 2010/06/30 14:20:50 UTC

[users@httpd] Re: Connection attempts - mod_proxy

>Using CentOS 5.4 version of apache httpd-2.2.3-31.el5. I have several 
>virtualhost and one of the virtualhost, use mod_proxy to serve a web 
>site I have running on Windows 2003, this server is not available 
>online, it is an internal server.

So Apache is a reverse proxy?

>Reviewing the messages I found Logwatch who have tried to use my server 
>through the same mod_proxy to connect to other servers or sites.

Disable forward proxying (ProxyRequests off), you don't need  that for a reverse proxy. Also use the firewall to disable all outgoing traffic that you don't need.

Joost


---------------------------------------------------------------------
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] Re: Connection attempts - mod_proxy

Posted by Michel Bulgado <mi...@casa.co.cu>.
Joost Heer, de wrote:
>> Using CentOS 5.4 version of apache httpd-2.2.3-31.el5. I have several 
>> virtualhost and one of the virtualhost, use mod_proxy to serve a web 
>> site I have running on Windows 2003, this server is not available 
>> online, it is an internal server.
>>     
>
> So Apache is a reverse proxy?
>
>   
>> Reviewing the messages I found Logwatch who have tried to use my server 
>> through the same mod_proxy to connect to other servers or sites.
>>     
>
> Disable forward proxying (ProxyRequests off), you don't need  that for a reverse proxy. Also use the firewall to disable all outgoing traffic that you don't need.
>
> Joost
>
>   
Hi

I only use mod_proxy for one virtualhost, this is my config:

<VirtualHost *:80>
        ServerName www.home.com
        ServerAdmin admin@home.com
        CustomLog logs/home-access.log combined
        ProxyRequests Off

        <Proxy *>
        Order deny,allow
        Deny from all
        </Proxy>

        ProxyPass / http://internalserver.home.com:80/
        ProxyPassReverse / http://internalserver.home.com:80/

        <Location />
        Order allow,deny
        Allow from all
        </Location>
</VirtualHost>


Thanks
Michel