<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi!</div><div>I've tried with this method (<span style="background-color: rgba(255, 255, 255, 0);">sessionCookiePath="/") </span>some hour ago, in this afternoon, and now It's everything ok!</div><div><br></div><div>Tomorrow I want to try with Tomcat8 (now I have the version 7)</div><div><br></div><div>Thanks a lot</div><div>Andrea</div><div><br><div>Inviato da iPhone</div></div><div><br>Il giorno 25 lug 2016, alle ore 21:43, Arash Kaffamanesh <<a href="mailto:ak@cloudssky.com">ak@cloudssky.com</a>> ha scritto:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:arial;font-size:small">Hi,<font size="1"></font></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">I'd a similar issue, and I'd to enable SSL for the workplace.</div><div><font face="arial"><br></font></div><div><font face="arial">And you might find some information here:</font></div><div><font face="arial"><br></font></div><div><font face="arial"><a href="https://docs.google.com/document/d/1PUNVQXecxABjf5WNh1xb1CWY-FIBZgOTPO1neIi6EgI/edit#heading=h.r4ba2ls3mq1o">https://docs.google.com/document/d/1PUNVQXecxABjf5WNh1xb1CWY-FIBZgOTPO1neIi6EgI/edit#heading=h.r4ba2ls3mq1o</a><br></font></div><br>Did you set sessionCookiePath="/" in the context tag of context.xml file:</div><div dir="ltr"><br><div><span id="docs-internal-guid-cfd8ce33-2393-dcaa-226d-ba2a63384699"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:10pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">$ vi /var/lib/tomcat7/conf/context.xml</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:10pt"><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><!-- Context --></span></p><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><Context sessionCookiePath="/"></span></span><br></div><div><span><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><br></span></span></div><div><div style="font-family:arial">By the way this OpenCms 9.5.3 Docker image is using OpenJDK 8, Tomcat 8, Apache 2 and MariaDB 10 installation:</div><div style="font-family:arial"><br></div><div><font face="arial"><a href="https://hub.docker.com/r/cloudssky/opencms-stack-local/" target="_blank">https://hub.docker.com/r/cloudssky/opencms-stack-local/</a></font></div></div><div><span><span style="font-size:14.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><br></span></span></div><div><font face="arial"><br></font></div><div><font face="arial">HTH,</font></div><div><font face="arial"><br></font></div><div><font face="arial">Kind Regards,</font></div><div><font face="arial">Arash</font></div><div><font face="arial"><br></font></div><div><font face="arial"><br></font></div><div><font face="arial"><br></font></div><div><font face="arial"><br></font></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Jul 25, 2016 at 12:25 PM, Andrea Lasi - ConsulMedia srl <span dir="ltr"><<a href="mailto:alasi@consulmedia.it" target="_blank">alasi@consulmedia.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<font size="-1">Hi,<br>
I have this server configuration:<br>
- Tomcat7<br>
- Apache 2.4<br>
- OpenCMS 9.5.4<br>
<br>
I need to remove {CONTEXT_NAME}/opencms from URL.<br>
<br>
With Tomcat6 Apache OpenCMS 9.5.x I use this configuration<br>
<br>
WEB-INF/config/opencms-importexport.xml<br>
<i><rendersettings></i><i><br>
</i><i> <rfs-prefix>/export</rfs-prefix></i><i><br>
</i><i> <vfs-prefix></vfs-prefix></i><i><br>
</i><i> ...</i><i><br>
</i><i></rendersettings></i><br>
<br>
WEB-INF/config/opencms-system.xml<br>
<i><sites></i><i><br>
</i><i>
<workplace-server><a>http://</a>{DOMAIN}</workplace-server></i><i><br>
</i><i> <default-uri>/sites/default/</default-uri></i><i><br>
</i><i> <site server="</i></font><font size="-1"><i><font size="-1"><a>http://</a>{DOMAIN}</font></i><i>"
uri="/sites/default/"/></i><i><br>
</i><i> ...</i><i><br>
</i><i></sites></i><br>
<br>
VirtualHost<br>
<i><VirtualHost <a href="http://158.58.173.69:80" target="_blank">158.58.173.69:80</a>></i><i><br>
</i><i> ServerAdmin info@{MY-DOMAIN-NAME}.com</i><i><br>
</i><i> ServerName www.{MY-DOMAIN-NAME}.com</i><i><br>
</i><i> ServerAlias {MY-DOMAIN-NAME}.com</i><i><br>
</i><i> ErrorLog
${APACHE_LOG_DIR}/{MY-DOMAIN-NAME}.com-error_log</i><i><br>
</i><i> CustomLog
${APACHE_LOG_DIR}/{MY-DOMAIN-NAME}<a href="http://aws.com">AWS.com</a>-access_log combined</i><i><br>
</i><i> DirectoryIndex index.html</i><i><br>
</i><i><br>
</i><i> # If the requested URI is located in the resources
folder, do not forward the request</i><i><br>
</i><i> SetEnvIfNoCase Request_URI
^/{MY-CONTEXT-NAME}/resources/.*$ no-jk</i><i><br>
</i><i><br>
</i><i> # If the requested URI is static content do not forward
the request</i><i><br>
</i><i> SetEnvIfNoCase Request_URI ^/export/.*$ no-jk</i><i><br>
</i><i><br>
</i><i> RewriteEngine on</i><i><br>
</i><i> # If the requested URI is NOT located in the resources
folder.</i><i><br>
</i><i> # Prepend an /isgas/opencms to everything that does not
already starts with it</i><i><br>
</i><i> # and force the result to be handled by the next
URI-handler ([PT]) (JkMount in this case)</i><i><br>
</i><i> RewriteCond %{REQUEST_URI}
!^/{MY-CONTEXT-NAME}/resources/.*$</i><i><br>
</i><i> RewriteCond %{REQUEST_URI} !^/export/.*$</i><i><br>
</i><i> RewriteRule !^/{MY-CONTEXT-NAME}/opencms/(.*)$
/{MY-CONTEXT-NAME}/opencms%{REQUEST_URI} [PT]</i><i><br>
</i><i><br>
</i><i> # These are the settings for static export. If the
requested resource is not already</i><i><br>
</i><i> # statically exported create a new request to the
opencms404 handler. This has to be</i><i><br>
</i><i> # a new request, because the current would net get
through mod_jk because of the "no-jk" var.</i><i><br>
</i><i> RewriteCond %{REQUEST_URI} ^/export/.*$</i><i><br>
</i><i> RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f</i><i><br>
</i><i> RewriteCond
"%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !-f</i><i><br>
</i><i> RewriteRule .*
/{MY-CONTEXT-NAME}/opencms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING}
[P]</i><i><br>
</i><i><br>
</i><i> # If the request starts with
/{MY-CONTEXT-NAME}/resources, delete the /{MY-CONTEXT-NAME}
prefix</i><i><br>
</i><i> RewriteCond %{REQUEST_URI}
^/{MY-CONTEXT-NAME}/resources/.*$</i><i><br>
</i><i> RewriteRule ^/{MY-CONTEXT-NAME}/(.*)$ /$1</i><i><br>
</i><i><br>
DocumentRoot /MY/DOCUMENT/ROOT</i><i><br>
</i><i> JkMount /* ajpconnector</i><i><br>
</i><i></VirtualHost></i><br>
<br>
If I use this configuration in Tomcat7 I see the site in online
view but if I do the login in
<a href="http://www" target="_blank">http://www</a>.{MY-DOMAIN-NAME}.com/system/login I have no error in
logs but I'm not redirect in Workplace (or in the home editable)
but I have redirect always in online view. Is it correctable?<br>
Can I use OpenCMS9.5.x with Tomcat7 (or 8) anche Apache
configuring all as I did with Tomcat6?<br>
<br>
So I follow this documentation but I have the problem that my
OpenCMS can't be the ROOT (I have some OpenCMS instances and I
can't put a Tomcat installation for each)<br>
<a href="http://documentation.opencms.org/opencms-documentation/server-installation/apache-webserver-configuration/" target="_blank">http://documentation.opencms.org/opencms-documentation/server-installation/apache-webserver-configuration/</a><br>
<br>
Thanks<span><font color="#888888"><br>
Andrea</font></span></font><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" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>This mail is sent to you from the opencms-dev mailing list</span><br><span>To change your list options, or to unsubscribe from the list, please visit</span><br><span><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a></span><br><span></span><br><span></span><br><span></span><br></div></blockquote></body></html>