[opencms-dev] static export and several sites

Martin Kuba makub at ics.muni.cz
Mon Jan 3 12:45:55 CET 2005


Alexander Semibratov wrote:
> I want:
> 
> <virtualHost *>
> servername site1
> documentroot /www/opencms/export/sites/site1
> </virtualhost>
> 
> <virtualHost *>
> servername site2
> documentroot /www/opencms/export/sites/site2
> </virtualhost>
> 
> but links in pages point to /sites/site1 (/sites/site2)

What I do is a redirect in Apache:

<virtualHost *>
servername site1
documentroot /www/opencms/export/sites/site1
RedirectPermanent /opencms/export/sites/site1/ http://www.site1.cz/
</virtualhost>

so the links are pointing to /sites/site1, but Apache corrects them.

Martin
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub at ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------



More information about the opencms-dev mailing list