[opencms-dev] virtual hosting

Bernd Wolfsegger bw at code-create.com
Fri Mar 11 15:22:04 CET 2005


Hi everybody,

I am using virtual hosting too; see my post from 9th of march.
Had no time to write it in english, but the text for the configurationfiles is 
language independent, so just ignore the text above the configurationfile 
text.
If you use the solution from the cms Page you will not be able to use forms 
with POST parameter, because the mod_alias Redirect does not redirect these 
parameters too ... Also no static content will be written to the filesystem, 
when you publish because of "ProxyPass /export !"

Another main problem with this new feature is, that URIs to the /sites folder 
are different depending on from were they are used.
If your site root is "/sites/default" and you use this URI literaly somewhere 
in your code it is correct if you are inside the OpenCms System.
If you are not inside, the URI had to be "/".
And there is no automatic conversion of the Uri depending on from where you 
are calling.
So I have a developed a little workaround.
I simply test info for "OpenCms.request.folder". If it contains /sites/default 
then I am inside and I use /sites/default for the path. When it does not 
contain this part I am outside and then I don't use this part for the path.
But this will not work with the cms:contentload tag, because there is no way 
to get the value of this variable into the "param" attribute ...
At this point I am stuck and hope that there will be something integrated into 
the system for automatic URI conversion.

Well perhaps has anybody else already solved the problem ...

Bernd Wolfsegger

On Friday 11 March 2005 16:40, Palic, Darko wrote:
> Hello Daniel,
>
> Could you refer to a document or tell us, how you managed the installation
> of the multiple sites?
>
> Best regards,
> Darko
>
> > I am currently using it to manage a number of sites.  With the help of
> > Apache httpd mod_proxy, this is a beautiful setup.  The folks developed
> > a beautiful product!
> >
> > --Daniel Rhoden
> >
> > Andras Balogh wrote:
> > > Hello,
> > >
> > >    This is just a partial answer but I hope it will help you a little
> > > bit.
> > > The OpenCMS version 6(currently beta) was designed in such way to
> > > support multiple sites (i.e. multiple virtual hosts).
> > > So you shoud definetly go with the OC6 version.
> > >    I have not tried this feature but it doesn't seem to be very hard
> > > to configure so i suggest you to install OC6 and try to play with
> > > the settings 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/"/>
> > > </sites>
>
> _______________________________________________
> 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