[opencms-dev] Workplace URL not found on docker
Bernhard Zebedin
bernhard.zebedin at visions2.net
Thu Mar 11 08:50:06 CET 2021
Hello Filip.
Plesk runs with Apache and nginx.
I have tomcat running in the docker with port external docker port 28080.
OpenCMS is deployed as ROOT-App, so I can access OpenCMS via http://www.domain.name:28080<http://ip.to.server:28080>
Everything works fine if I access OpenCMS directly.
On Apache I configured a complete Proxy Passthrough:
ProxyPass / http://localhost:28080/
ProxyPassReverse / http://localhost:28080/
for all requests.
The website itself runs without a problem.
I configured "workplace.domain.name" as seperate workplace URL. Via :28080 I can access the workplace.
If I connect through Apache I get a 404 from OpenCMS.
For testing I implemented a JSP Login. Then I retrieve an error from OpenCMS that the Workplace URL is not
configured correctly.
Ohhhh.... on writing this email I tried a last thing.....
Now it works....
If you do a complete proxy passthrough you have to configure the workplace url in this apache directive
e.g.
ProxyPass / http://workplace.domain.name:28080/
ProxyPassReverse / http://workplace.domain.name:28080/<http://localhost:28080/>
Running AJP with tomcat you don't need this. That was my fault.
kr
Bernhard
________________________________
Von: opencms-dev <opencms-dev-bounces at opencms.org> im Auftrag von Filip.Kratochvil at ibacz.eu <Filip.Kratochvil at ibacz.eu>
Gesendet: Freitag, 5. März 2021 14:18
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] Workplace URL not found on docker
Hello Bernhard,
have you got 404 from Tomcat or Webserver? What's the webserver (i don't know Plesk)?
Check Apache configuration, especially chapters 7 a and 9:
https://documentation.opencms.org/opencms-documentation/server-installation/traditional-with-apache-webserver/apache-webserver-configuration/
Problem can be missing lines:
...
RewriteCond %{REQUEST_URI} !^/workplace.*$ # required since OpenCms 10
RewriteCond %{REQUEST_URI} !^/VAADIN/.*$ # required since OpenCms 10
...
In this case, webserver adds /opencms prefix for workplace requests but it's not valid.
S pozdravem / Kind regards
Filip Kratochvil
Web & Portal Consultant
IBA CZ, s.r.o.
-----"opencms-dev" <opencms-dev-bounces at opencms.org<mailto:opencms-dev-bounces at opencms.org>> wrote: -----
To: "The OpenCms mailing list" <opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>>
From: "Bernhard Zebedin"
Sent by: "opencms-dev"
Date: 03/03/2021 09:13AM
Subject: [opencms-dev] Workplace URL not found on docker
Hi all.
I have a very interesting problem.
I managed more than 10 OpenCMS installations on different servers.
On one I have a very unique problem in combination with Plesk and Docker.
(All other installations running Plesk with Tomcat)
On this installation the OpenCMS cannot detect correctly the workplace-url.
Docker mapped from internal 8080 to external 28080.
On Plesk I have configured a proxy:
ProxyPass / http://localhost:28080/
ProxyPassReverse / http://localhost:28080/
The site works without a problem running via https an this proxy settings.
I have one configured with https://www.thisisthedomain.com/ working without a problem
One is configured with https://workplace.thisisthedomain.com/
On this domain I tried to configure access to the workplace.
So I added https://workplace.thisisthedomain.com to the workplace urls.
But I get a 404 on accessing https://workplace.thisisthedomain.com/workplace?
The direct url to the docker-port runs without a problem
(http://workplace.thisistthedomain.com:28080/workplace)
The system runs on opencms-docker:11.0.0
Maybe one of you can help me.
Thanks
Bernhard
_______________________________________________
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
________________________________
Disclaimer:
The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it.
It may contain confidential or legally privileged information.
If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately by forwarding this email to ict at ibacz.eu and then delete it from your system.
IBA Group is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.opencms.org/pipermail/opencms-dev/attachments/20210311/8125cbf0/attachment.htm>
More information about the opencms-dev
mailing list