[opencms-dev] Error using link

Christoph Kukulies kuku at physik.rwth-aachen.de
Wed Jan 10 17:27:29 CET 2024


Hi Atle,

even at the danger of telling nonsene :-), let me make some other suggestions: When you have two servers, one for admin, one for frontend, then opencms-sites.xml should reflect that.

You need a site entry for the adminitrative server and one for the frontend.
So yours should like like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE opencms SYSTEM "http://www.opencms.org/dtd/6.0/opencms-sites.dtd">

<opencms>
    <sites>
        <workplace-server sslmode="no">http://enerson <http://enerson/>.no:8080</workplace-server>
        <default-uri>/sites/default/</default-uri>
        <shared-folder>/shared/</shared-folder>
        <oldStyleSecureServer>true</oldStyleSecureServer>
        <site server="http://enerson <http://enerson/>.no:8080" uri="/sites/default/" title="Demo Site" webserver="true" sslmode="no" subsiteSelection="false">
            <parameters>
                <param name="locale.main">en</param>
                <param name="locale.secondary">de</param>
            </parameters>
        </site>
        <site server="http://1408 <http://0.0.5.128/>.no:8080" uri="/sites/oc/" title="yourtitle" webserver="true" sslmode="no" subsiteSelection="false"/>
    </sites>
</opencms>

The server names must match.

> Am 10.01.2024 um 16:14 schrieb Atle Enersen <atle.enersen at gmail.com>:
> 
> Hello Christoph, and thanks for your reply.
>  
> - The browser cache is flushed, and to be certain I tested in 4 different browsers (Chrome, Edge, Firefox and Opera).
>  
> - It is not a multisite setup, but when installing it it took one domainname for admin and one for frontend. It happened automatically (enersen.no and 1408.no), they (and other domains) correspond to the same server. Apache on 80/443 and Tomcat on 8080/8443.
>  
> - Tomcat are both servlet container and frontend server.

So not Apache? You said, Tomcat is the frontend.

--
Christoph

>  
> - And yes, at some point it will be protected by SSL, just have not gotten to it yet. I know have to configure it in Apache, but not Tomcat.
>  
> Best regards, Atle Enersen
> --
> Tel.: +47 48063171
> Bluesky/X-Twitter: @nesrene
>  
> Fra: Christoph Kukulies <kuku at physik.rwth-aachen.de> 
> Sendt: onsdag 10. januar 2024 15:51
> Til: The OpenCms mailing list <opencms-dev at opencms.org>
> Kopi: Atle Enersen <atle.enersen at gmail.com>
> Emne: Re: [opencms-dev] Error using link
>  
> I have had some trouble with setting up my multisite and chasing problems like this.
> In your case the peculiar thing is that the resource looks like it  is static content (export). 
>  
> Only vage ideas:
>  
> Has the browser cache been flushed and it only worked as long the resource  was in the browser cache?
> Is your setup a multisite configuration?
> What is the servlet container? (Tomcat?)
> What is the frontend server?
>  
> Despite from this your: secure your site (SSL).
>  
> --
> Christoph
>  
>> Am 10.01.2024 um 14:28 schrieb Atle Enersen via opencms-dev <opencms-dev at opencms.org>:
>>  
>> Hello again.
>>  
>> When I try to access http://1408.no:8080/oc/export/system/modules/org.enersen.core/resources/img/1408_header_1500x200_new.png and http://enersen.no:8080/oc/export/system/modules/org.enersen.core/resources/img/1408_header_1500x200_new.png i get error 404. I am 99 % sure it worked earlier…
>>  
>> See the attached image…
>>  
>> Best regards, Atle Enersen
>> --
>> Tel.: +47 48063171
>> Bluesky/X-Twitter: @nesrene
>>  
>> <Skjermbilde 2024-01-10 142745.png>_______________________________________________
>> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20240110/7909c7e0/attachment.htm>


More information about the opencms-dev mailing list