<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: OpenCms Apache integration: The simplest solution</title>
	<atom:link href="http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/</link>
	<description>Sebastian Himbergers blog about technology and software development</description>
	<lastBuildDate>Tue, 13 Sep 2011 07:18:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Sebastian</title>
		<link>http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/comment-page-1/#comment-28388</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Tue, 13 Sep 2011 07:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=353#comment-28388</guid>
		<description>Hi Alexey, 

thanks for this comment and very useful tip!

All the best,
Sebastian</description>
		<content:encoded><![CDATA[<p>Hi Alexey, </p>
<p>thanks for this comment and very useful tip!</p>
<p>All the best,<br />
Sebastian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey</title>
		<link>http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/comment-page-1/#comment-28387</link>
		<dc:creator>Alexey</dc:creator>
		<pubDate>Mon, 12 Sep 2011 15:43:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=353#comment-28387</guid>
		<description>Hi,Yann!

Most probably the reason of workplace page reloading is Tomcat sessionPath parameter. As soon as you used Tomcat 7.x, you should configure sessionCookiePath=&quot;/&quot; attribute in $CATALINA_HOME/conf/context.xml file, not emptySessionPath=&quot;true&quot; in $CATALINA_HOME/conf/server.xml file. For example,

</description>
		<content:encoded><![CDATA[<p>Hi,Yann!</p>
<p>Most probably the reason of workplace page reloading is Tomcat sessionPath parameter. As soon as you used Tomcat 7.x, you should configure sessionCookiePath=&#8221;/&#8221; attribute in $CATALINA_HOME/conf/context.xml file, not emptySessionPath=&#8221;true&#8221; in $CATALINA_HOME/conf/server.xml file. For example,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yann</title>
		<link>http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/comment-page-1/#comment-23315</link>
		<dc:creator>Yann</dc:creator>
		<pubDate>Thu, 14 Oct 2010 04:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=353#comment-23315</guid>
		<description>Dear all,

I have the same problem as Alibek above: &quot;I cannot login into [the] workplace, [OpenCMS] redirects me to [the] login page everytime. What is the problem?&quot; 

I have followed the instructions, modified the Tomcat AJP connector declaration, Apache, and so on. I have installed OpenCMS as opencms.war. I am runing Apache 2.2.4, Tomcat 7.0.2, OpenCMS 7.5.3. OpenCMS works fine from &quot;localhost&quot; on the local computer.

Any idea what I am doing wrong?
Take care!
Yann</description>
		<content:encoded><![CDATA[<p>Dear all,</p>
<p>I have the same problem as Alibek above: &#8220;I cannot login into [the] workplace, [OpenCMS] redirects me to [the] login page everytime. What is the problem?&#8221; </p>
<p>I have followed the instructions, modified the Tomcat AJP connector declaration, Apache, and so on. I have installed OpenCMS as opencms.war. I am runing Apache 2.2.4, Tomcat 7.0.2, OpenCMS 7.5.3. OpenCMS works fine from &#8220;localhost&#8221; on the local computer.</p>
<p>Any idea what I am doing wrong?<br />
Take care!<br />
Yann</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin</title>
		<link>http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/comment-page-1/#comment-21829</link>
		<dc:creator>Dustin</dc:creator>
		<pubDate>Thu, 02 Sep 2010 21:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=353#comment-21829</guid>
		<description>Hi Sebastian,

Has there been any attempts to use a front end web server to proxy requests to back-end servers with this configuration? I&#039;ll give you an example. We have one server running Apache HTTPD with a public IP, configured with multiple virtual host conf files and ProxyPass the connections to back end web servers. This method works great for all static websites we host.

We&#039;re considering setting up OpenCMS for our new main website, and we&#039;d like to host it on a back-end server and proxy the connection through our front-end webserver. I&#039;ve taken the details and suggestions above and attempted to use them in this way, setting the server name to the IP address of the back-end server hosting Tomcat. This does not seem to work. Connecting directly to the back-end server works just fine.

Is this possible, or is this a pipe dream?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Sebastian,</p>
<p>Has there been any attempts to use a front end web server to proxy requests to back-end servers with this configuration? I&#8217;ll give you an example. We have one server running Apache HTTPD with a public IP, configured with multiple virtual host conf files and ProxyPass the connections to back end web servers. This method works great for all static websites we host.</p>
<p>We&#8217;re considering setting up OpenCMS for our new main website, and we&#8217;d like to host it on a back-end server and proxy the connection through our front-end webserver. I&#8217;ve taken the details and suggestions above and attempted to use them in this way, setting the server name to the IP address of the back-end server hosting Tomcat. This does not seem to work. Connecting directly to the back-end server works just fine.</p>
<p>Is this possible, or is this a pipe dream?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/comment-page-1/#comment-15153</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Sun, 07 Feb 2010 16:25:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=353#comment-15153</guid>
		<description>Hi,

thanks for the reply. I think you have put xml between &lt;code&gt; tags. I guess wordpress filters out all the tags that it dosn&quot;t know to prevent XSS. 

Yes you need two VirtualHosts for SSL. Sorry I thought you already had it configured this way. I should have been less assuming. 

Anyway I&#039;m glad it works for you now. If you have any further questions please stop by.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>thanks for the reply. I think you have put xml between <code> tags. I guess wordpress filters out all the tags that it dosn"t know to prevent XSS. </p>
<p>Yes you need two VirtualHosts for SSL. Sorry I thought you already had it configured this way. I should have been less assuming. </p>
<p>Anyway I'm glad it works for you now. If you have any further questions please stop by.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arrow3215</title>
		<link>http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/comment-page-1/#comment-15141</link>
		<dc:creator>arrow3215</dc:creator>
		<pubDate>Sun, 07 Feb 2010 08:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=353#comment-15141</guid>
		<description>@sebastian 
your blogsoftware is filtering out half of the post, especially the xml parts in opencms-system.xml description. So this part of my post above makes no sense. I try it verbally:
In WEB-INF/config/opencms-system.xml under the sites entry define your website as secure server. This will cause a login on http://mysite/system/login being redirected to https.</description>
		<content:encoded><![CDATA[<p>@sebastian<br />
your blogsoftware is filtering out half of the post, especially the xml parts in opencms-system.xml description. So this part of my post above makes no sense. I try it verbally:<br />
In WEB-INF/config/opencms-system.xml under the sites entry define your website as secure server. This will cause a login on <a href="http://mysite/system/login" rel="nofollow">http://mysite/system/login</a> being redirected to https.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arrow3215</title>
		<link>http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/comment-page-1/#comment-15139</link>
		<dc:creator>arrow3215</dc:creator>
		<pubDate>Sun, 07 Feb 2010 08:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=353#comment-15139</guid>
		<description>Thanks Sebastian, now it&#039;s running. 

I made the proxypass entries twice, one  for the http site  and one for the https site. So now I have the Site with http and the workplace with https.

In WEB-INF/config/opencms-system.xml :
.
.

 
      https://mysite.de
      /sites/default/
      
        
      


The http Virtual host entry for apache is as  described above. 

The https virtual host entry is as follows:

For integrating awstsats and phpmyadmin in the secure site I tried:





SSLProxyEngine On
SSLProxyVerify none
..
...
..
 Alias /phpmyadmin /pathto/phpmyadmin
.
.

     ProxyRequests Off
#  for proxying to other TomcatAppa for let&#039;s say for example maps
      ProxyPass        /maps/  ajp://localhost:8009/maps/
      ProxyPassReverse /maps/  ajp://localhost:8009/maps/
#     
      ProxyPass        /opencms/  ajp://localhost:8009/opencms/
      ProxyPassReverse /opencms/  ajp://localhost:8009/opencms/
#     for allowing phpmysql under site.de/phpmyadmin 
      ProxyPass         /phpmydmin      !
#     for awstatst
      ProxyPass         /cgi-bin  !
      ProxyPass         /awstats-icon !
      ProxyPass         /         ajp://localhost:8009/opencms/opencms/
      ProxyPassReverse  /         ajp://localhost:8009/opencms/opencms/    

</description>
		<content:encoded><![CDATA[<p>Thanks Sebastian, now it&#8217;s running. </p>
<p>I made the proxypass entries twice, one  for the http site  and one for the https site. So now I have the Site with http and the workplace with https.</p>
<p>In WEB-INF/config/opencms-system.xml :<br />
.<br />
.</p>
<p>      <a href="https://mysite.de" rel="nofollow">https://mysite.de</a><br />
      /sites/default/</p>
<p>The http Virtual host entry for apache is as  described above. </p>
<p>The https virtual host entry is as follows:</p>
<p>For integrating awstsats and phpmyadmin in the secure site I tried:</p>
<p>SSLProxyEngine On<br />
SSLProxyVerify none<br />
..<br />
&#8230;<br />
..<br />
 Alias /phpmyadmin /pathto/phpmyadmin<br />
.<br />
.</p>
<p>     ProxyRequests Off<br />
#  for proxying to other TomcatAppa for let&#8217;s say for example maps<br />
      ProxyPass        /maps/  ajp://localhost:8009/maps/<br />
      ProxyPassReverse /maps/  ajp://localhost:8009/maps/<br />
#<br />
      ProxyPass        /opencms/  ajp://localhost:8009/opencms/<br />
      ProxyPassReverse /opencms/  ajp://localhost:8009/opencms/<br />
#     for allowing phpmysql under site.de/phpmyadmin<br />
      ProxyPass         /phpmydmin      !<br />
#     for awstatst<br />
      ProxyPass         /cgi-bin  !<br />
      ProxyPass         /awstats-icon !<br />
      ProxyPass         /         ajp://localhost:8009/opencms/opencms/<br />
      ProxyPassReverse  /         ajp://localhost:8009/opencms/opencms/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/comment-page-1/#comment-15124</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Sat, 06 Feb 2010 19:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=353#comment-15124</guid>
		<description>Hi, there should be no problems. Make sure your Apache is configured correctly by serving some static pages via SSL. If you want to have an SSL connection all the way through the following directives might for proxying:

SSLProxyEngine On
SSLProxyVerify none

Are you sure you are accessing the right port?</description>
		<content:encoded><![CDATA[<p>Hi, there should be no problems. Make sure your Apache is configured correctly by serving some static pages via SSL. If you want to have an SSL connection all the way through the following directives might for proxying:</p>
<p>SSLProxyEngine On<br />
SSLProxyVerify none</p>
<p>Are you sure you are accessing the right port?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arrow3215</title>
		<link>http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/comment-page-1/#comment-15009</link>
		<dc:creator>arrow3215</dc:creator>
		<pubDate>Wed, 03 Feb 2010 19:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=353#comment-15009</guid>
		<description>I have problems to make it work with ssl. I can&#039;t bypass Apache in going via  https://site.com:8443/opencms/opemcms/system/login directly to tomcat bcause of the changes in &quot;opencms-importexport.xml&quot; . To the other hand
https://site.de/system/login is not captuered by the virtual host ( 
ServerName yourdomain.com
....) and an error message &quot;ssl_error_rx_record_too_long&quot; occurs. Can anyone post an ssl config that runs with this ajp solution or do I have to use mod_rwrite?

thanks in  advance</description>
		<content:encoded><![CDATA[<p>I have problems to make it work with ssl. I can&#8217;t bypass Apache in going via  <a href="https://site.com:8443/opencms/opemcms/system/login" rel="nofollow">https://site.com:8443/opencms/opemcms/system/login</a> directly to tomcat bcause of the changes in &#8220;opencms-importexport.xml&#8221; . To the other hand<br />
<a href="https://site.de/system/login" rel="nofollow">https://site.de/system/login</a> is not captuered by the virtual host (<br />
ServerName yourdomain.com<br />
&#8230;.) and an error message &#8220;ssl_error_rx_record_too_long&#8221; occurs. Can anyone post an ssl config that runs with this ajp solution or do I have to use mod_rwrite?</p>
<p>thanks in  advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://www.sebastian.himberger.de/blog/2009/03/11/opencms-apache-integration-the-simplest-solution/comment-page-1/#comment-12760</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Sat, 31 Oct 2009 16:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastian.himberger.de/blog/?p=353#comment-12760</guid>
		<description>Great to hear! I&#039;m glad you got it working.</description>
		<content:encoded><![CDATA[<p>Great to hear! I&#8217;m glad you got it working.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

