<div dir="ltr">Hello,<div>I eventually made it work using ajp connector</div><div><br></div><div>this is the configuration:</div><div><br></div><div>opencms-importexport.xml:</div><div><div><span class="" style="white-space:pre">     </span><rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix></div>
<div><span class="" style="white-space:pre">    </span><vfs-prefix>/</vfs-prefix></div></div><div><br></div><div>opencms-system.xml:</div><div><div>    <sites></div><div>      <workplace-server><a href="http://www.example.com">http://www.example.com</a></workplace-server></div>
<div>      <default-uri>/</default-uri></div><div>      <shared-folder>/shared/</shared-folder></div><div>      <site server="<a href="http://www.example.com">http://www.example.com</a>" uri="/sites/default/"/></div>
<div>    </sites></div></div><div><br></div><div>virtual host for apache:</div><div><div><VirtualHost *:80></div><div><span class="" style="white-space:pre">   </span>ServerName <a href="http://www.example.com">www.example.com</a></div>
<div><span class="" style="white-space:pre">    </span>ServerAdmin webmaster@localhost</div><div><span class="" style="white-space:pre">    </span>DocumentRoot /var/lib/tomcat7/webapps/ROOT/</div><div><br></div><div><span class="" style="white-space:pre">       </span><Directory "/var/lib/tomcat7/webapps/ROOT/"></div>
<div><span class="" style="white-space:pre">            </span>Options FollowSymlinks</div><div><span class="" style="white-space:pre">             </span>AllowOverride All</div><div><span class="" style="white-space:pre">          </span>Order allow,deny</div>
<div><span class="" style="white-space:pre">            </span>Allow from all</div><div>        </Directory> </div><div><br></div><div><span class="" style="white-space:pre">     </span>RewriteEngine On</div><div><span class="" style="white-space:pre">   </span>RewriteRule ^/$ /opencms/ [passthrough]</div>
<div><span class="" style="white-space:pre">    </span>RewriteCond %{REQUEST_URI} !^/opencms/.*$</div><div><span class="" style="white-space:pre">  </span>RewriteCond %{REQUEST_URI} !^/export/.*$</div><div><span class="" style="white-space:pre">   </span>RewriteCond %{REQUEST_URI} !^/resources/.*$</div>
<div><span class="" style="white-space:pre">    </span>RewriteCond %{REQUEST_URI} !^/error/.*$</div><div><span class="" style="white-space:pre">    </span>RewriteCond %{REQUEST_URI} !^/icons/.*$</div><div><span class="" style="white-space:pre">    </span>RewriteCond %{REQUEST_URI} !^/update/.*$</div>
<div><span class="" style="white-space:pre">    </span>RewriteRule .* /opencms%{REQUEST_URI} [QSA,passthrough]</div><div></VirtualHost></div></div><div><br></div><div>configuration for apache:</div><div><div><IfModule mod_jk.c></div>
<div> JkWorkerProperty worker.list=ocms</div><div> JkWorkerProperty worker.ocms.type=ajp13</div><div> JkWorkerProperty worker.ocms.host=<a href="http://www.example.com">www.example.com</a></div><div> JkWorkerProperty worker.ocms.port=8009</div>
<div> JkLogFile "/var/log/apache2/mod_jk_%Y_%m_%d.log"</div><div> JkLogLevel error</div><div> JkShmFile /var/log/apache2/jk.shm</div><div> JkOptions +RejectUnsafeURI</div><div> JkMount /opencms/* ocms</div><div>
 JkMount /export/* ocms</div><div> JkMount /resources/* ocms</div><div> JkMountCopy All</div><div></IfModule></div></div><div><br></div><div>and the connector for tomcat's server.xml:</div><div><div><Connector port="8009"</div>
<div><span class="" style="white-space:pre">    </span> address="127.0.0.1"</div><div><span class="" style="white-space:pre">     </span> protocol="AJP/1.3"</div><div><span class="" style="white-space:pre">      </span> redirectPort="8443"</div>
<div><span class="" style="white-space:pre">    </span> emptySessionPath="true"</div><div><span class="" style="white-space:pre"> </span> enableLookups="false"/></div></div><div><br></div><div><br></div>
<div>thanks a lot for the help everyone!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 11, 2014 at 10:02 PM, Deiverson Silveira <span dir="ltr"><<a href="mailto:deiverson@solutioncms.com" target="_blank">deiverson@solutioncms.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Try add this for redirect:<div><pre><div><font face="arial"><span style="white-space:normal">        ProxyPass               /opencms/resources/commons     <a href="http://localhost:8080/opencms/resources/commons" target="_blank">http://localhost:8080/opencms/resources/commons</a></span></font></div>

<div><font face="arial"><span style="white-space:normal">        ProxyPassReverse        /opencms/resources/commons     <a href="http://localhost:8080/opencms/resources/commons" target="_blank">http://localhost:8080/opencms/resources/commons</a></span></font></div>

<div><font face="arial"><span style="white-space:normal"> </span></font></div><div><font face="arial"><span style="white-space:normal">        ProxyPass               /opencms/export/      <a href="http://localhost:8080/opencms/export/" target="_blank">http://localhost:8080/opencms/export/</a></span></font></div>

<div><font face="arial"><span style="white-space:normal">        ProxyPassReverse        /opencms/export/       <a href="http://localhost:8080/opencms/export" target="_blank">http://localhost:8080/opencms/export</a></span></font></div>

<div><font face="arial"><span style="white-space:normal"> </span></font></div><div><font face="arial"><span style="white-space:normal">        ProxyPass        /opencms   <a href="http://localhost:8080/opencms/" target="_blank">http://localhost:8080/opencms/</a></span></font></div>

<div><font face="arial"><span style="white-space:normal">        ProxyPassReverse /opencms   <a href="http://localhost:8080/opencms" target="_blank">http://localhost:8080/opencms</a></span></font></div><div><font face="arial"><span style="white-space:normal"> </span></font></div>

<div><font face="arial"><span style="white-space:normal">        ProxyPass /          <a href="http://localhost:8080/opencms/opencms/" target="_blank">http://localhost:8080/opencms/opencms/</a></span></font></div><div><font face="arial"><span style="white-space:normal">        ProxyPassReverse /   <a href="http://localhost:8080/opencms/opencms" target="_blank">http://localhost:8080/opencms/opencms</a></span></font></div>

</pre></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-11 15:47 GMT-03:00 Dudu Zoltan <span dir="ltr"><<a href="mailto:dzoltan@gmail.com" target="_blank">dzoltan@gmail.com</a>></span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">thanks for everyone for the help,<div>my configuration is the default one regarding apache, tomcat and openCMS (plus the changes as written in the wiki)</div>

<div><br></div><div><span style="font-size:13px">with Deiverson's method I can reach <a href="http://www.mysite.com" target="_blank">www.mysite.com</a> (no 404) but all images and CSS are not loaded.</span><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Jun 11, 2014 at 4:15 PM, Christoph Kukulies <span dir="ltr"><<a href="mailto:kuku@physik.rwth-aachen.de" target="_blank">kuku@physik.rwth-aachen.de</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>opencms-importexport.xml should have
      the lines changed to:<br>
      <br>
      <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix><br>
      <vfs-prefix>${CONTEXT_NAME}</vfs-prefix><br>
      <br>
      Also examine the error logs<div><br>
      <br>
      --<br>
      Chris Christoph P. U. Kukulies kukulies (at) <a href="http://rwth-aachen.de" target="_blank">rwth-aachen.de</a><br>
      <br>
      <br></div><div>
      Am 11.06.2014 07:29, schrieb Dudu Zoltan:<br>
    </div></div>
    <blockquote type="cite">
      
      <div dir="ltr">Hello,
        <div><div><div>I installed OpenCMS 9.0.1 and the demo site + login worked
          OK.</div>
        <div><br>
        </div>
        <div>I followed the instructions in <a href="http://www.opencms-wiki.org/wiki/Avoiding_/opencms/opencms_in_the_URL_%28apache_%2B_mod_proxy%29" target="_blank">http://www.opencms-wiki.org/wiki/Avoiding_/opencms/opencms_in_the_URL_(apache_%2B_mod_proxy)</a>
          to remove the opencms/ part in the URL but after the changes I
          receive the OpenCMS 404 page when trying to open <a href="http://www.example.com" target="_blank">www.example.com</a>
          or <a href="http://www.example.com/system/login" target="_blank">www.example.com/system/login</a>.</div>
        <div><br>
        </div>
        <div>My environment is Ubuntu linux 14.04, apache, Tomcat</div>
        <div>OpenCMS is installed as ROOT webapp</div>
        <div>(I also tried different combinations for the apache rewrite
          and proxy configuration wihtout success)</div>
        <div><br>
        </div>
        <div>Please help me understand what I am missing.</div>
        <div>Thank you very much.</div>
      </div></div></div>
      <br>
    </blockquote>
    <br>
  </div>

<br></div></div><div>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div></div></div><br><br clear="all"><div class=""><div><br></div>-- <br><i><div><span style="font-style:normal"><i><div><span style="font-style:normal"><i><div style="display:inline!important"><span style="font-style:normal"><i><a href="http://www.solutioncms.com" target="_blank">www.solutioncms.com</a></i></span></div>

</i></span></div><div><span style="font-style:normal"><i><span style="font-style:normal"><i><div><span style="font-style:normal"><i><div style="display:inline!important"><span style="font-style:normal"><i><span style="font-style:normal"><i><div style="display:inline!important">

<i>The Brazilian </i><span style="font-style:normal"><i><div style="display:inline!important"><span style="font-style:normal"><i><span style="font-style:normal"><i><div style="display:inline!important"><i>Official Provider OpenCms</i></div>

</i></span></i></span></div></i></span></div></i></span></i></span></div></i></span></div></i></span></i></span></div></i></span></div></i>
</div></div>
<br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div>