Hello List,<br><br>I am facing a very strange problem here, to remove: 8080/context/servlet/ with SSL.<br><br>I removed the <vfs-prefix></vfs-prefix> CONTEXT_NAME and SERVLET_NAME, and configure for using secure in opencms-system.xml for SSL, <br>
but if I try to access <a href="http://localhost/system/login">http://localhost/system/login</a>, the system redirects to <a href="https://localhost/system/login/index.html">https://localhost/system/login/index.html</a> and 404 occur. <br>
If I add <a href="https://localhost/context/servlet/system/login/index.html">https://localhost/context/servlet/system/login/index.html</a> the system displays the secure page to login, but it does not refer to <br>the meeting, it is strange that I removed the CONTEXT_NAME, and the SERVLET_NAME file opencms-importexport.xml.<br>
<br>Why when configured to use https, he insists on searching (add) for context/servlet and the page is loaded, which removed the<br>opencms-importexport.xml? From where he is reading this information?<br><br>My environment is:<br>
Apache 2.2.11<br>JBoss 4.2.1<br>SQL Server 2003<br>Windows Server 2003<br>JDK 5<br><br>I followed the tutorial from Sebastian Himberg, and successfully managed to remove: 8080/context/servlet /, but now I need implement SSL.<br>
<br>To implement the SSL 3 I follow these guidelines:<br><br><a href="http://www.pomegranate.de:9000/cms/forum/viewthread?thread=11">http://www.pomegranate.de:9000/cms/forum/viewthread?thread=11</a><br><a href="http://opencms-forum.de/opencms-forum/viewthread?thread=1559">http://opencms-forum.de/opencms-forum/viewthread?thread=1559</a><br>
<a href="http://opencms-forum.de/opencms-forum/viewthread?thread=1888">http://opencms-forum.de/opencms-forum/viewthread?thread=1888</a><br><br>I will describe now how are my files:<br>- File Httpd.conf:<br>Uncomment the following lines:<br>
<br>LoadModule proxy_module modules/mod_proxy.so<br>LoadModule proxy_ajp_module modules/mod_proxy_ajp.so<br>LoadModule proxy_balancer_module modules/mod_proxy_balancer.so<br>LoadModule proxy_connect_module modules/mod_proxy_connect.so<br>
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so<br>LoadModule proxy_http_module modules/mod_proxy_http.so<br>LoadModule rewrite_module modules/mod_rewrite.so<br>LoadModule ssl_module modules/mod_ssl.so<br><br>Include conf/extra/httpd-vhosts.conf<br>
<br>I do not uncomment, for that is that JBoss/OpenCms is responsible for doing/managing a SSL connection:<br>#Include conf/extra/httpd-ssl.conf<br><br>- File httpd-vhosts.conf:<br><VirtualHost *:80><br><br>  ServerName localhost<br>
  DocumentRoot c:\jboss-421\server\default\deploy\myproject.war<br> <br>  <Proxy ajp://localhost:18009*><br>     Allow from all<br>  </Proxy><br> <br>  ProxyPass /myproject/          ajp://localhost:8009/myproject/<br>
  ProxyPassReverse /myproject/   ajp://localhost:8009/myproject/<br>  <br>  ProxyPass /          ajp://localhost:8009/myproject/opencms/<br>  ProxyPassReverse /   ajp://localhost:8009/myproject/opencms/  <br>  <br></VirtualHost><br>
<br>- File opencms-importexport.xml<br><vfs-prefix></vfs-prefix><br>But if I go back to <vfs-prefix> $(CONTEXT_NAME)$(SERVLET_NAME)</ vfs-prefix> and try to get <a href="http://localhost/context/servlet/system/login">http://localhost/context/servlet/system/login</a><br>
the system redirects to <a href="https://localhost/context/servlet/system/">https://localhost/context/servlet/system/</a> login and I can enter the environment via https, but I need to remove the<br>context and servlet<br>
<br>- File opencms-system.xml<br>    <sites><br>      <workplace-server><a href="https://localhost/">https://localhost/</a></workplace-server><br>      <default-uri>/sites/default/</default-uri><br>
      <site server="<a href="http://localhost/">http://localhost/</a>" uri="/sites/default/"><br>        <secure server="<a href="https://localhost/">https://localhost/</a>" exclusive="true" error="false" />        <br>
      </site><br>    </sites><br>    <br>I tried to do all this setup using the port 8443 and then 18443 (Changing in server.xml)<br>If I change <workplace-server><a href="https://localhost/">https://localhost/</a></workplace-server> to http, not use https, I can log normal <a href="http://localhost/system/login">http://localhost/system/login</a><br>
but not via SSL.<br><br>- File server.xml (jboss-web.deployer/server.xml) to secure port:<br><br><Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"<br>               maxThreads="150" scheme="https" secure="true"<br>
               clientAuth="false" sslProtocol="TLS"<br>               keystoreFile="c:\mykey.keystore"<br>               keystorePass="test123456"                <br>               /><br>
               <br>    <Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3"<br>         emptySessionPath="true" enableLookups="false" redirectPort="443" /><br>
      <Engine name="jboss.web" defaultHost="localhost">               <br>      <br>    <Connector port="8090" address="${jboss.bind.address}"    <br>         maxThreads="250" maxHttpHeaderSize="8192"<br>
         emptySessionPath="true" protocol="HTTP/1.1"<br>         enableLookups="false" redirectPort="443" acceptCount="100"<br>         connectionTimeout="20000" disableUploadTimeout="true" />      <br>
         <br>It was in these places that I swapped the ports SSL.<br><br>If I make SSL configuration and remove the context/servlet in opencms-importexport.xml the site works, I surf, but the login page<br>does not work, gives the 404 error and redirect to <a href="https://localhost/system/login/index.html">https://localhost/system/login/index.html</a>, but if I try <a href="https://localhost/context/servlet/system/login">https://localhost/context/servlet/system/login</a>,<br>
the page is rendered, but can not login, when you run submit, the 404, the putting context/servlet when I try to make a secure connection?<br><br>I tried another scenario, keep the $CONTEXT_NAME and SERVLET_NAME the VFS (opencms-importexport.xml) then does the secure connection, the login, <br>
OK, WORK ALL, but get <a href="https://localhost/context/servlet/system/login">https://localhost/context/servlet/system/login</a> ... dont work remove context/servlet with SSL<br><br>Someone already faced this kind of difficulty or see any solution?<br>
<br>Forgive me the great email, but I do not know who to rely more<br> <br clear="all">King Regards,<br><br>Deiverson Silveira<br>Developer OpenCms Brazilian<br>