[opencms-dev] OpenCms 13 So close to multi-site working, just need a smidgeon of help please

Antonio Cordeddu antoniocordeddu at coranto.it
Mon Oct 3 09:32:13 CEST 2022


Hello Hawke,

if you are using Apache/Nginx you have to configure a virtual host for 
each site.

<<< Tomcat9...  But how do I get it so they don't need the /opencms/ 
after the domain?
To avoid /opencms/ after domain you have to check if you have installed 
opencms as ROOT webapp instead of opencms webapp.
To do that you have to rename opencms.war in ROOT.war

I hope this is useful for you.

Kind regards
Antonio

_______________________________________________
Coranto informatica di Antonio Cordeddu
Via Torricelli, 9 09047 Selargius (CA) - Italy
antoniocordeddu at coranto.it
https://www.coranto.it
_______________________________________________



On 03/10/2022 01:57, Hawke R via opencms-dev wrote:
> With just straight Tomcat9, no added Nginx, httpd, or Apache in between.
> On a production server, not localhost.
> OpenCms 13, Debian 11.
>
> I have the default administrative site working at 
> opencms1.<domain1>.<tld>:8080
> That works fine.
> The (first) two test websites and domains work with urls:
> http://<domain2>.<tld>/opencms/
> http://<domain3>.<tld>/opencms/
>
> It redirects and shows the correct separate websites  and contents for 
> domains 2 and 3.
> But how do I get it so they don't need the /opencms/ after the domain?
>
> Without the /opencms/ added, I get the default "It Works" Tomcat9 page 
> for each.
> I tried with added Apache2 and Nginx, and it just became a looping mess.
> What is the correct config tweak to make to Tomcat or OpenCms to get 
> these serving up correctly by name?
>
> Thanks kindly!
> -Hawke
>
> _______________________________________________
> 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
>
>
>

-- 



More information about the opencms-dev mailing list