[opencms-dev] adding a /sites/mysite
Arash Kaffamanesh
arash.kaffamanesh at pomegranate.de
Thu Dec 1 13:57:40 CET 2005
Hi,
On production sites you shall have a dns entry / mapping and use the
domain name.
Both 1. and 2. are correct.
<site server="http://localhost:8080" uri="/sites/default/"/>
<site server="http://localhost:8080" uri="/sites/mysite/"/>
This setting fails, because of the duplicated localhost entry, but this
would work:
<site server="http://localhost:8080" uri="/sites/default/"/>
<site server="http://127.0.0.1:8081" uri="/sites/mysite/"/>
you can define in etc/hosts your mapping, e.g.
127.0.0.1 cms.localhost
84.42.134.234 www.cms.mydomain
And use:
<site server="http://cms.localhost:8080" uri="/sites/default/"/>
<site server="http://www.cms.mydomain:8081" uri="/sites/mysite/"/>
And define the second 8081 conector as Michael stated in the previous
email.
Kind Regards,
Arash
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Joe Desbonnet
Sent: Donnerstag, 1. Dezember 2005 13:12
To: kuku at physik.rwth-aachen.de; The OpenCms mailing list
Subject: Re: [opencms-dev] adding a /sites/mysite
I'm not 100% sure what the problem is, but here are two suggestions:
1. Don't use localhost for the worksplace-server. Use the proper server
name eg cms-server.mycompany.com:8080 or use IP numbers if there is
nothing setup in DNS.
2. Use a unique "server" attribute for each site in the site tag. Ie
don't use "http://localhost:8080". Instead use
myExperimentalSite.mycompany.com (I don't think it needs to be setup in
the DNS or in apache, but I suspect that OpenCms just needs unique
strings in the "server" attribute for each OpenCms "site" element.
Maybe someone who knows for sure can confirm this, as I don't have time
to experiment with OpenCms configuration to verify what I'm saying right
now...
Yes: this aspect of OpenCms is complex. But I think all CMS systems
(opensource or otherwise) also need a long learning period. However the
site creation is something that really should be in the admin GUI in my
opinion.
Joe.
On 12/1/05, Christoph P. Kukulies <kuku at physik.rwth-aachen.de> wrote:
> I tried from various recipes I found but to no avail,
> to add a /sites/mysite to have a clean playground to start with.
>
> Last I tried was adding a line in opencms-system.xml:
>
> <sites>
> <workplace-server>http://localhost:8080</workplace-server>
> <default-uri>/sites/default/</default-uri>
> <site server="http://localhost:8080" uri="/sites/default/"/>
> <site server="http://localhost:8080" uri="/sites/mysite/"/>
> </sites>
>
> This already looks strange (the same server http://localhost:8080
> entries) but I have no idea how to do it right.
>
> Opencms fails starting on this opencms-system.xml.
>
> Also Bernd Wolfsegger wrote in that mail I'm referring
> ( http://mail.opencms.org/pipermail/opencms-dev/2005q2/016400.html):
>
> "Well, you have to create a directory "/sites/www.mysite/" in the VFS
> and fill it with whatever you need for your site."
>
> How does one do this, "create a directory /sites/www.mysite"?
>
> Oh man, opencms is complicated. Sigh.
>
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list