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

Re: Apache + Proxy Reverso



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Olá Elton,

On 28-03-2011 15:58, Elton Lima wrote:
> ###### mail.eltonlima.com.br.conf  #############
> <VirtualHost *:80>
> 
> ServerName mail.eltonlima.com.br
> ServerAlias www.mail.eltonlima.com.br
> 
> ProxyPreserveHost On
> ProxyRequests Off
> ProxyPass / http://mail.eltonlima.com.br
> ProxyPassReverse / http://mail.eltonlima.com.br
> 
> </VirtualHost>

Tenho uma demanda similar, fazer proxy de um site público
para um servidor interno, uma forma de fazer isso é via
DNAT, a outra é como você fez com Proxy Reverso do Apache.

Eu tenho a seguinte configuração:

/etc/apache2/sites-available/site-proxy-reverso

<VirtualHost *:80>
        ServerAdmin admins@example.com
        ServerName example.com
        ServerAlias www.example.com

        ProxyRequests Off

        <Proxy *>
             Order Deny,Allow
             Allow from all
        </Proxy>

        ProxyPass / http://example.intranet.local/
        ProxyPassReverse / http://example.intranet.local/
        ProxyPreserveHost On

        ErrorLog /srv/example.com/log/apache2/error.log

        LogLevel warn
        CustomLog /srv/example.com/log/apache2/access.log combined
</VirtualHost>

Abraço,
- -- 
Felipe Augusto van de Wiel (faw)
Debian. Freedom to code. Code to freedom!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2b/k4ACgkQCjAO0JDlyka9AwCguS40zmzH9vrRDkS3UvY3UTtZ
ZFMAmgI9QEWHQ9phRNfR7LtCoWcj9KrS
=LDjP
-----END PGP SIGNATURE-----


Reply to: