[opencms-dev] Removing opencms/opencms , I am desperate

Honey.Bhandari at cognizant.com Honey.Bhandari at cognizant.com
Mon Sep 28 18:49:23 CEST 2015


In the web.xml u can change the opencms to xyz to remove 2 opencms. To remove the 1st opencms, if you are using tomcat, just rename the folder to abc, or as mentioned Jose, set it as a ROOT app. You can use the tomcat deployment manager to deploy as abc instead of abc to do this cleanly.

Hope this helps.

Regards
Honey

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Jose Fermin Athie Campollo
Sent: Monday, September 28, 2015 9:21 PM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Removing opencms/opencms , I am desperate

Hi Piblo!

I suppose you had already saw this http://www.opencms-wiki.org/wiki/Avoiding_/opencms/opencms_in_the_URL_(apache_%2B_mod_proxy)

To remove the second opencms, that is the servlet one is a little bit hard. I use url rewrite to remove it.

I set this rules  in the file
<rule>
            <condition type="request-uri" operator="notequal">^/export/.*$</condition>
            <condition type="request-uri" operator="notequal">^/resources/.*$</condition>
            <condition type="request-uri" operator="notequal">^/opencms-errorhandler/.*$</condition>
            <condition type="request-uri" operator="notequal">^/webdav/.*$</condition>
            <condition type="request-uri" operator="notequal">^/opencms/.*$</condition>
            <condition type="request-uri" operator="notequal">^/setup/.*$</condition>
  <from>^/(.*)$</from>
  <to>/opencms/$1</to>
</rule>

I never use it, but for eliminate the first opencms you have to change de web.xml with the param-name "DefaultWebApplication", change param-value ROOT for opencms.

I hope you find it useful

Regards,
Fermin



El lun., 28 de sept. de 2015 a la(s) 8:42 a. m., piblo <pablobetancor at gmail.com<mailto:pablobetancor at gmail.com>> escribió:
Thank you for the answer, but I get the same error:

"
A system error reading a resource occurred!
Error del servidor 404
No encontrado

El recurso solicitado "/opencms/system/login/index.html" no se encontró en
el servidor.
"



--
View this message in context: http://opencms.996256.n3.nabble.com/Removing-opencms-opencms-I-am-desperate-tp25811p25813.html
Sent from the OpenCMS mailing list archive at Nabble.com.
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev


This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150928/5a0ab003/attachment.htm>


More information about the opencms-dev mailing list