[opencms-dev] How do I link to tomcat applications outside of Opencms?
Michael Emmerich
m.emmerich at alkacon.com
Wed Sep 22 07:49:34 CEST 2021
Hello Ivan,
by default, OpenCms identifies those kind of links as "internal". But
there is a way to define exclusion, paths that will be seen as
"external" in OpenCms. Here is what to do:
1) In the opencms-importexport.xml config file, replace the line
<linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler</linksubstitutionhandler>
with
<linksubstitutionhandler>org.opencms.staticexport.CmsAdvancedLinkSubstitutionHandler</linksubstitutionhandler>
2) In your OpenCms, there is a file /system/config/linkexcludes/
in it, you can define those paths that are no identified as non-OpenCms,
e.g. external to the application.
Example: Your OpenCms runs as the ROOT-Webappliciiton at
https://www.myserver.com
Therefore everything starting with "https://www.myserver.com" will be
seen as an internal Link in OpenCms. When you now do the configuration
as above ans add "/myexternalapp" to the /system/config/linkexcludes/
config file,
https://www.myserver.com/myexternalapp will not be seens as an internal
OpenCms link.
Hope this helps,
Michael
Am 21.09.21 um 17:34 schrieb Ivan Drinks Sr:
>
> I have other applications running in the same Tomcat instance as
> Opencms. Opencms is my ROOT application. I cannot create an external
> link to the other Tomcat applications because Opencms sees everything
> relative to it and states resource not found. How to I connect to my
> other Tomcat applications?
>
> Thanks for your help.
>
> Ivan Sr
>
>
> _______________________________________________
> 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
> https://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
--
Michael Emmerich
Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org Co. KG - The OpenCms Experts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.opencms.org/pipermail/opencms-dev/attachments/20210922/c9aa9375/attachment.htm>
More information about the opencms-dev
mailing list