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

fhsubscriptions at componio.net fhsubscriptions at componio.net
Mon Nov 24 14:01:52 CET 2014


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://*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://*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:
> 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/dca9f692/attachment.htm>


More information about the opencms-dev mailing list