AW: [opencms-dev] Problem with mod_proxy,parameters and sessions
Daniel López
D.Lopez at uib.es
Mon Feb 23 10:42:01 CET 2004
Hi Manuel,
It seems that you have OpenCMS configured to be served under the suffix
/vpmcms/ and that might be the problem. Reading the documentation
regarding the use of mod_proxy, you should have configured Tomcat to
serve OpenCMS as /, not /vpmcms/opencms/. And then your proxy settings
should look like...
...
# Log only non-redirect requests in "normal" log file
SetEnvIf Request_URI "\/opencms\/*" redirect
CustomLog logs/localhost-access.log common env=!redirect
ProxyPass /opencms/ !
RedirectPermanent /opencms/ http://www.vpm.at/
ProxyPass /resources/ !
ProxyPass /export/ !
ProxyPass / http://127.0.0.1:8082/opencms/
ProxyPassReverse / http://127.0.0.1:8082/opencms/
...
If you don't have opencms at the root level, then you might get links
not working properly. Anyway, you could try to have it running under
/vpmcms/, but then your mod_proxy would look like this(note the regular
expression in SetEnvIf, '/' is escaped):
...
# Log only non-redirect requests in "normal" log file
SetEnvIf Request_URI "\/vpmcms\/opencms\/*" redirect
CustomLog logs/localhost-access.log common env=!redirect
ProxyPass /vpmcms/opencms/ !
RedirectPermanent /vpmcms/opencms/ http://www.vpm.at/vpmcms/
ProxyPass /vpmcms/resources/ !
ProxyPass /vpmcms/export/ !
ProxyPass /vpmcms
http://127.0.0.1:8082/vpmcms/opencms/
ProxyPassReverse /vpmcms
http://127.0.0.1:8082/vpmcms/opencms/
...
But, if you wids to turn http://myserver.com/vpmcms/opencms/de/... into
http://myserver.com/de/..., then you need to set OpenCms as ROOT web
application inside tomcat (getting rid of the /vmpcms/ suffix) and then
use the first configuration. And I think you cannot get rid completely
of the second 'opencms' suffix, as that's the way OpenCMS knows it is a
dynamic resource.
I hope it helps,
D.
Manuel Wallnöfer escribió:
> Hi Daniel,
>
> My httpd.conf looks like this for the host where i want to supress the
> /vpmcms/opencms/ suffix.
>
>
> <VirtualHost *>
> ServerName www.vpm.at
> ServerAdmin office at opencms.at
>
> DocumentRoot /opt/jakarta/tomcat/webapps/vpmcms/
> ErrorLog /var/log/apache2/error.log
> SetEnvIf Request_URI "\/vpmcms/opencms\/*" redirect
> CustomLog /var/log/apache2/edit-access.log common env=!redirect
>
>
> ProxyPass /vpmcms/opencms/vpm/ !
> RedirectPermanent /vpmcms/opencms/vpm/ http://www.vpm.at/
>
> ProxyPass /vpmcms/resources/
> http://127.0.0.1:8091/vpmcms/resources/
> ProxyPass /vpmcms/export/
> http://127.0.0.1:8091/vpmcms/export/
> ProxyPass /vpmcms/ http://127.0.0.1:8091/vpmcms/
>
> ProxyPass / http://127.0.0.1:8091/vpmcms/opencms/vpm/
> ProxyPassReverse /
> http://127.0.0.1:8091/vpmcms/opencms/vpm/
>
>
> <Directory "/srv/www/htdocs/vpm.at/webalizer">
> AuthName "Webalizer VPM"
> AuthType Basic
> AuthUserFile /srv/www/htdocs/vpm.at/webalizer/.htpasswd
> require valid-user
> </Directory>
>
>
>
> </VirtualHost>
>
>
> My situation is that i want to change the url from
> http://myserver.com/vpmcms/opencms/de/.... To
> http://myserver.com/de/.......
>
> Thx for help
>
>
> Regards
> Manuel
More information about the opencms-dev
mailing list