[opencms-dev] static export in 6 RC2

Martin Kuba makub at ics.muni.cz
Thu Jun 30 10:31:26 CEST 2005


GV wrote:
> Hi,
> 
> when static export is performed, everything gets archived under the 
> path: /opencms/export/sites/...
> 
> How can I change that? I actually want to trail the "opencms/export/sites" 
> part!

The /opencms/ part is context of the OpenCMS webapplication. So it may 
be removed if you place OpenCMS into ROOT webapplication.

The /export/ part is configured in 
webapps/opencms/WEB-INF/config/opencms-importexport.xml
file in <exportpath> and can be changed.

The /sites/mysite part is from VFS. Maybe it can be changed
using 'exportname' property of folders, but I did not try this.

What I am presently doing is a redirect on Apache

<VirtualHost _default_:80>
  ServerName www.mysite.cz
  DocumentRoot /home/me/tomcat/webapps/opencms/export/sites/mysite/
  RedirectPermanent /opencms/export/sites/mysite/ http://www.mysite.cz/

so that links in pages do contains the prefix, but it is not
visible to users, as their browsers get redirected immediately.

Anybody has a better solution ?

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