<?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/"
	>

<channel>
	<title>slashdevslashnull.com &#187; Apache</title>
	<atom:link href="http://www.slashdevslashnull.com/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.slashdevslashnull.com</link>
	<description>Random geeky rants, that probably go nowhere in particular...</description>
	<lastBuildDate>Wed, 10 Nov 2010 20:59:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to bind Zimbra to a specific IP? Run Apache on the same server</title>
		<link>http://www.slashdevslashnull.com/2010/02/how-to-bind-zimbra-to-a-specific-ip-run-apache-on-the-same-server/</link>
		<comments>http://www.slashdevslashnull.com/2010/02/how-to-bind-zimbra-to-a-specific-ip-run-apache-on-the-same-server/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 20:54:37 +0000</pubDate>
		<dc:creator>iMx</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Zimbra]]></category>

		<guid isPermaLink="false">http://www.slashdevslashnull.com/?p=59</guid>
		<description><![CDATA[So, something that came out of a comments posting from another article &#8211; how to integrate Z-Push &#8211; was the question &#8216;Is it possible to run Apache on the same server?&#8217;  The answer is yes, providing you have multiple IP&#8217;s &#8211; there is another way to proxy the requests but im not doing to discuss ]]></description>
			<content:encoded><![CDATA[<p>So, something that came out of a comments posting from another article &#8211; <a href="http://www.slashdevslashnull.com/2010/02/push-email-contacts-and-calendar-with-zimbra-6-opensource-z-push-activesync/">how to integrate Z-Push</a> &#8211; was the question &#8216;Is it possible to run Apache on the same server?&#8217;  The answer is yes, providing you have multiple IP&#8217;s &#8211; there is another way to proxy the requests but im not doing to discuss that here.  So, if you want to bind the web GUI to a specific IP, use the following.  This does not bind Postfix to only 1 IP, i see no need for that personally.</p>
<p>This method should work on all versions of Zimbra that utilise Jetty as the web server, that should be Zimbra version 5.x and above; including 6.x.  Edit the following files:</p>
<ol>
<li>/opt/zimbra/mailboxd/etc/jetty.xml.in</li>
<blockquote><p>&lt;Set name=&#8221;Host&#8221;&gt;your-ip-address&lt;/Set&gt;</p></blockquote>
<p>Add the above entry to the HTTP connector, or HTTPS &#8211; depending which you are using, it should look like the below:</p>
<blockquote><p>&lt;!&#8211; =========================================================== &#8211;&gt;<br />
&lt;!&#8211; Set connectors                                              &#8211;&gt;<br />
&lt;!&#8211; =========================================================== &#8211;&gt;</p>
<p>&lt;!&#8211; user services connector, no SSL &#8211;&gt;<br />
&lt;!&#8211; HTTPBEGIN<br />
&lt;Call name=&#8221;addConnector&#8221;&gt;<br />
&lt;Arg&gt;<br />
&lt;New id=&#8221;http&#8221;&gt;<br />
&lt;Set name=&#8221;port&#8221;&gt;&lt;SystemProperty name=&#8221;jetty.port&#8221; default=&#8221;%%zimbraMailPort%%&#8221;/&gt;&lt;/Set&gt;<br />
&lt;Set name=&#8221;maxIdleTime&#8221;&gt;30000&lt;/Set&gt;<br />
&lt;Set name=&#8221;lowResourceMaxIdleTime&#8221;&gt;1000&lt;/Set&gt;<br />
&lt;Set name=&#8221;Acceptors&#8221;&gt;2&lt;/Set&gt;<br />
&lt;Set name=&#8221;confidentialPort&#8221;&gt;%%zimbraMailSSLPort%%&lt;/Set&gt;<br />
&lt;Set name=&#8221;useDirectBuffers&#8221;&gt;%%zimbraMailUseDirectBuffers%%&lt;/Set&gt;<br />
&lt;Set name=&#8221;Host&#8221;&gt;your-ip-address&lt;/Set&gt;<br />
&lt;/New&gt;<br />
&lt;/Arg&gt;<br />
&lt;/Call&gt;<br />
HTTPEND &#8211;&gt;</p>
<p>&lt;!&#8211; user services connector, SSL &#8211;&gt;<br />
&lt;!&#8211; HTTPSBEGIN &#8211;&gt;<br />
&lt;Call name=&#8221;addConnector&#8221;&gt;<br />
&lt;Arg&gt;<br />
&lt;New id=&#8221;ssl&#8221;&gt;<br />
&lt;Set name=&#8221;Port&#8221;&gt;%%zimbraMailSSLPort%%&lt;/Set&gt;<br />
&lt;Set name=&#8221;useDirectBuffers&#8221;&gt;%%zimbraMailUseDirectBuffers%%&lt;/Set&gt;<br />
&lt;Set name=&#8221;maxIdleTime&#8221;&gt;30000&lt;/Set&gt;<br />
&lt;Set name=&#8221;lowResourceMaxIdleTime&#8221;&gt;1000&lt;/Set&gt;<br />
&lt;Set name=&#8221;Acceptors&#8221;&gt;2&lt;/Set&gt;<br />
&lt;Set name=&#8221;keystore&#8221;&gt;&lt;SystemProperty name=&#8221;jetty.home&#8221; default=&#8221;.&#8221;/&gt;/etc/keystore&lt;/Set&gt;<br />
&lt;Set name=&#8221;password&#8221;&gt;@@mailboxd_keystore_password@@&lt;/Set&gt;<br />
&lt;Set name=&#8221;KeyPassword&#8221;&gt;@@mailboxd_keystore_password@@&lt;/Set&gt;<br />
&lt;Set name=&#8221;ExcludeCipherSuites&#8221;&gt;<br />
&lt;Array type=&#8221;java.lang.String&#8221;&gt;<br />
%%zimbraSSLExcludeCipherSuitesXML%%<br />
&lt;/Array&gt;<br />
&lt;/Set&gt;<br />
&lt;Set name=&#8221;Host&#8221;&gt;your-ip-address&lt;/Set&gt;<br />
&lt;/New&gt;<br />
&lt;/Arg&gt;<br />
&lt;/Call&gt;<br />
&lt;!&#8211; HTTPSEND &#8211;&gt;</p></blockquote>
<li>/opt/zimbra/mailboxd/etc/zimbra.web.xml.in</li>
<p>Uncomment the SOAP URL, so it changes from this:</p>
<blockquote><p>&lt;!&#8211; =============<br />
&lt;context-param&gt;<br />
&lt;param-name&gt;zimbra.soap.url&lt;/param-name&gt;<br />
&lt;param-value&gt;http://localhost:7070/service/soap&lt;/param-value&gt;<br />
&lt;/context-param&gt;<br />
&#8211;&gt;</p></blockquote>
<p>To the following, notice the :7070 disappears and is instead replaced by your IP &#8211; note change HTTP to HTTPS if youre using that instead:</p>
<blockquote><p>&lt;context-param&gt;<br />
&lt;param-name&gt;zimbra.soap.url&lt;/param-name&gt;<br />
&lt;param-value&gt;https://your-ip-address/service/soap&lt;/param-value&gt;<br />
&lt;/context-param&gt;</p></blockquote>
<li>/opt/zimbra/mailboxd/etc/zimbraAdmin.web.xml.in</li>
<p>Now  we need to do the same for the above file, uncomment the SOAP URL and modify to HTTP or HTTPS, removing port 7070:</p>
<blockquote><p>&lt;!&#8211; =============<br />
&lt;context-param&gt;<br />
&lt;param-name&gt;zimbra.soap.url&lt;/param-name&gt;<br />
&lt;param-value&gt;http://localhost:7070/service/soap&lt;/param-value&gt;<br />
&lt;/context-param&gt;<br />
&#8211;&gt;</p></blockquote>
<p>To this:</p>
<blockquote><p>&lt;context-param&gt;<br />
&lt;param-name&gt;zimbra.soap.url&lt;/param-name&gt;<br />
&lt;param-value&gt;https://your-server-ip/service/soap&lt;/param-value&gt;<br />
&lt;/context-param&gt;</p></blockquote>
<li>su &#8211; zimbra</li>
<li>zmcontrol stop; zmcontrol start</li>
</ol>
<p>I obviously strongly recommend you backup, by copying, all the files BEFORE you modify them &#8211; making roll back easy.  Im not currently using this method, as i moved my web server to a separate box &#8211; but it was from my notes, so should work!  Let me know if you have any issues and ill do my best to help&#8230;.</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script><a class='DiggThisButton DiggMedium' href='http://digg.com/submit?url=http://www.slashdevslashnull.com/2010/02/how-to-bind-zimbra-to-a-specific-ip-run-apache-on-the-same-server/&amp;title=How+to+bind+Zimbra+to+a+specific+IP%3F+Run+Apache+on+the+same+server'></a></div><div class='dd_button'><script type='text/javascript'>reddit_url = http://www.slashdevslashnull.com/2010/02/how-to-bind-zimbra-to-a-specific-ip-run-apache-on-the-same-server/;reddit_title = How+to+bind+Zimbra+to+a+specific+IP%3F+Run+Apache+on+the+same+server;reddit_newwindow='1';</script><script type='text/javascript' src='http://www.reddit.com/static/button/button2.js'></script></div><div class='dd_button'><iframe src='http://api.tweetmeme.com/button.js?url=http://www.slashdevslashnull.com/2010/02/how-to-bind-zimbra-to-a-specific-ip-run-apache-on-the-same-server/&amp;source=&amp;style=normal' height='61' width='50' frameborder='0' scrolling='no'></iframe></div><div class='dd_button'><a name='fb_share' type='box_count' share_url='http://www.slashdevslashnull.com/2010/02/how-to-bind-zimbra-to-a-specific-ip-run-apache-on-the-same-server/' href='http://www.facebook.com/sharer.php'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script></div><div class='dd_button'><script type='text/javascript' src='http://www.polladium.com/web_services/poll-this/poll-this.js?t=How+to+bind+Zimbra+to+a+specific+IP%3F+Run+Apache+on+the+same+server&amp;u=http://www.slashdevslashnull.com/2010/02/how-to-bind-zimbra-to-a-specific-ip-run-apache-on-the-same-server/&amp;type=normal'></script></div><div class='dd_button'><script src="http://www.stumbleupon.com/hostedbadge.php?s=5&amp;r=http://www.slashdevslashnull.com/2010/02/how-to-bind-zimbra-to-a-specific-ip-run-apache-on-the-same-server/"></script></div><div class='dd_button'><a href='http://delicious.com/save' onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('http://www.slashdevslashnull.com/2010/02/how-to-bind-zimbra-to-a-specific-ip-run-apache-on-the-same-server/')+'&amp;title='+encodeURIComponent('How+to+bind+Zimbra+to+a+specific+IP%3F+Run+Apache+on+the+same+server'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><div class='delicious-normal-img'><img src='http://www.slashdevslashnull.com/wp-content/plugins/digg-digg/image/delicious.png' alt='Delicious' /><div class='delicious-normal-text' id='DD_DELICIOUS_AJAX_POST_ID'>1 save</div></div></a></div></div></div><div style='clear:both'></div><!-- Social Buttons Shared Counts Generated by Digg Digg plugin v4.2, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->]]></content:encoded>
			<wfw:commentRss>http://www.slashdevslashnull.com/2010/02/how-to-bind-zimbra-to-a-specific-ip-run-apache-on-the-same-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

