[opencms-dev] virtualhost example/tip sought
Christoph P. Kukulies
kuku at physik.rwth-aachen.de
Thu Nov 3 17:27:29 CET 2005
On Thu, Oct 27, 2005 at 08:26:09PM +0200, Siegfried Puchbauer wrote:
> Your vhost config could look something like this:
>
> NameVirtualHost *:80
> >
> > <VirtualHost *:80>
> > ServerName www.company.de <http://www.company.de>
> > DocumentRoot e:/Tomcat/tomcat4.1.24/webapps/opencms/
> >
> > ProxyPass /resources/ ! # Served by apache
> > ProxyPass /export/ ! # Served by apache
> >
> > ProxyPass /opencms/ http://localhost:8080/opencms/ #Your Tomcat Server
> > ProxyPassReverse /opencms/ http://localhost:8080/opencms/
> >
> > RedirectPermanent / http://www.company.de/opencms/opencms/de/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This line doesn't seem to work in the way that an existing
http://www.company.de/opencms/opencms/de/index.htm
is being opened. I'm getting HTTP Status 404 from Tomcat instead.
It works, when I replace it by
RedirectPermanent / http://www.company.de/opencms/opencms/de/index.htm
but this gets me into other trouble, I'm afraid, when I will apply rewrite
rules (to get rid of the opencms/opencms) stuff.
In the end I will get rid of /opencms/opencms on that OCMS 5.0/Tomcat 4
site before doing the big step to 6.0.
> >
> > </VirtualHost>
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
More information about the opencms-dev
mailing list