<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>pwn-o-rama &#187; zimbra zcs apache2</title>
	<atom:link href="http://blog.pwn.cl/tag/zimbra-zcs-apache2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pwn.cl</link>
	<description>occasionally braindumps</description>
	<lastBuildDate>Mon, 05 Jul 2010 00:14:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/cl/</creativeCommons:license>		<item>
		<title>Reverse proxy for Zimbra, mod_proxy and apache2</title>
		<link>http://blog.pwn.cl/2010/03/reverse-proxy-for-zimbra-mod_proxy-and-apache2/</link>
		<comments>http://blog.pwn.cl/2010/03/reverse-proxy-for-zimbra-mod_proxy-and-apache2/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 01:58:09 +0000</pubDate>
		<dc:creator>sneira</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[zimbra zcs apache2]]></category>

		<guid isPermaLink="false">http://blog.pwn.cl/?p=304</guid>
		<description><![CDATA[El escenario: - Un servidor web con Debian 5 (Lenny), apache2, con una sólo una IP pública. Atiende múltiples virtual hosts. - Un servidor de correo con Zimbra Collaboration Suite 6 (ZCS), con una IP privada. - Ambos servidores forman parte de la misma red. Antecedentes: El hostname mail.example.com está asociado a la IP pública [...]]]></description>
			<content:encoded><![CDATA[<p><strong>El escenario:</strong></p>
<p>- Un servidor web con Debian 5 (Lenny), apache2, con una sólo una IP pública. Atiende múltiples virtual hosts.<br />
- Un servidor de correo con Zimbra Collaboration Suite 6 (ZCS), con una IP privada.<br />
- Ambos servidores forman parte de la misma red.</p>
<p><strong>Antecedentes:</strong></p>
<p>El hostname mail.example.com está asociado a la IP pública del servidor web.<br />
El hostname internal-mai.example.com está asociado a la IP privada del servidor de correo.</p>
<p><strong>El requerimiento:</strong></p>
<p>El webmail de ZCS debe ser accesible desde Internet en http://mail.example.com</p>
<p><strong>La solución:</strong></p>
<p>En el servidor web</p>
<pre class="brush: bash; light: true;">

# a2enmod proxy proxy_http
# vim /etc/apache2/mods-available/proxy.conf
</pre>
<p>en el archivo proxy.com reemplaza &#8216;Deny from all&#8217; por &#8216;Allow from all&#8217; (sin las comillas)</p>
<pre class="brush: bash; light: true;">

# vim /etc/apache2/sites-available/mail.example.com
</pre>
<p>Y agrega este contenido:</p>
<pre class="brush: bash; light: true;">

&lt;VirtualHost *:80&gt;
ServerName mail.example.com
ProxyPass / http://internal-mail.example.com/
ProxyPassReverse / http://internal-mail.example.com/
ErrorLog /var/log/apache2/mail.example.com-error.log
LogLevel warn
CustomLog /var/log/apache2/mail.example.com-access.log combined
&lt;/VirtualHost&gt;
</pre>
<p>Por último reinicia apache2</p>
<pre class="brush: bash; light: true;">

/etc/init.d/apache2 restart
</pre>
<p>Ahora a través de un proxy inverso (reverse proxy) todas las peticiones dirigidas a http://mail.example.com serán redirigidas internamente a http://internal-mail.example.com , el servidor de correo.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">
<pre class="brush: bash; light: true;">[/code]
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.pwn.cl/2010/03/reverse-proxy-for-zimbra-mod_proxy-and-apache2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
