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

Consulta sobre proxy reverso con Apache2



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

Hola!

Tengo un Apache que sirve localmente varios virtual hosts donde me
gustaría agregar otros virtual hosts que se encuentren en otro servidor
Apache de mi red interna. Para ello agregué un archivo
reverse-sites.freesoftware.org en sites-available donde agrupar todos
los virtual hosts que se encuentren en el otro servidor, lo habilité,
agregué los módulos proxy y rewrite y usé una configuración como esta:

- ----------------------------------------------------------------------------
<VirtualHost *>

ServerAdmin webmaster@localhost
ServerName host.dominio

# Rerverse proxy. No usamos ProxyPass porque impide que mod_rewrite
# funcione.
ProxyRequests Off
ProxyPassReverse / http://host.dominio/
ProxyPreserveHost on

# Esta linea es la que hace el reverse proxy.
RewriteRule ^/(.*)$ http://host.dominio/$1 [P]

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

ErrorLog "|/usr/bin/cronolog
/var/log/apache2/ws1/%Y%m/%Y%m%d_host.dominio_error.log"
CustomLog "|/usr/bin/cronolog
/var/log/apache2/ws1/%Y%m/%Y%m%d_host.dominio_access.log"
combined

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

ServerSignature On

# Para solucionar errores:
# Error reading from remote server
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1

</VirtualHost>
- ----------------------------------------------------------------------------

El tema es que cuando intento acceder a host.dominio desde afuera,
obtengo algo como esto:

Not Found. The requested URL / was not found on this server.

¿Puede ser que me esté faltando algo? Me habían hecho un comentario que
puede haber problemas si el mismo Apache está sirviendo sitios
localmente.

Gracias anticipadas por responder.

Saludos,
Daniel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkieCdgACgkQZpa/GxTmHTdBDACfSjNFZ6yatbHg8vEItR5cyj7B
A5sAoJRhxfLEf9UJf1KJCjjIeYetE/1i
=kIkT
-----END PGP SIGNATURE-----


Reply to: