[opencms-dev] [Solved] Re: OpenCms 9.5 /sites not accessable

Paul-Inge Flakstad flakstad at npolar.no
Mon Nov 24 14:26:10 CET 2014


Hi Fabian,

Just for the record: it's a good idea to keep the workplace on a dedicated domain. If not, cross-site links may/will misbehave.

(In a setup like yours, I'd expect issues especially with links from D/E to A/B/C.)

Cheers,
Paul

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of fhsubscriptions at componio.net
Sent: 24. november 2014 14:02
To: The OpenCms mailing list
Subject: [opencms-dev] [Solved] Re: OpenCms 9.5 /sites not accessable

Hi,

for future reference I am answering this myself :-)

If you are using a web proxy in front of the application server and the domain for the workplace server is identical with one of the sites domains, the domain has to be the first to be defined - otherwise you will have the effect as described below.

The following config works

    <sites>
      <workplace-server>http://domainA</workplace-server>
      <default-uri>/sites/default/</default-uri>
      <shared-folder>/shared/</shared-folder>
        <site server="http://http://<http://http:/>domainA" uri="/sites/default/">
                <alias server="http://domainB"/>
                <alias server="http://domainC"/>
            </site>
        <site server="http://domainD" uri="/sites/de/">
                <alias server="http://domainE"/>
        </site>
    </sites>

Whereas this config leads to the issues described below

    <sites>
      <workplace-server>http://domainA</workplace-server>
      <default-uri>/sites/default/</default-uri>
      <shared-folder>/shared/</shared-folder>
        <site server="http://http://<http://http:/>domainB" uri="/sites/default/">
                <alias server="http://domainA"/>
                <alias server="http://domainC"/>
            </site>
        <site server="http://domainD" uri="/sites/de/">
                <alias server="http://domainE"/>
        </site>
    </sites>

@Alkacon Is this the expected behaviour or is this a bug?

Kind regards,

\Fabian

Am 18.11.2014 15:08, schrieb fhsubscriptions at componio.net<mailto:fhsubscriptions at componio.net>:

Hi everybody,



I am having a strange problem with OpenCms 9.5, Tomcat 7 and NGINX.

The system behaves as expected: NGINX acts as a proxy, I cann log in and

access all /sites and /system folders and the /shared folder. However I

cannot access /sites directly?!?

Did someone encounter this problem with 9.5?



I know that this issue occurred with 8.x when the proxy forwarded host

name did not match the configured workplace host. But in this case both

names matches.



Many thanks,



\Fabian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20141124/0dfadea7/attachment.htm>


More information about the opencms-dev mailing list