[Zope] apache rewrite virtual host URL-hiding

Aleksandar Radulovic alex@a13x.net
Thu, 17 Jul 2003 13:33:17 -0000


Hello, Florian..

> # new domain: http://openspirit.de, does not work; forwarding bzw.
> URL-hiding from a real hosting
> <VirtualHost openspirit.de>
>         ServerName openspirit.de
>         ServerAlias openspirit.de
>                 RewriteEngine on
>                 RewriteLogLevel 1
>                 RewriteRule ^/(.*)$
>
http://coforum.org:9080/VirtualHostBase/http/openspirit.de:80/openspirit/Vir
tualHostRoot/$1 [P]
> </VirtualHost>

Shouldn't it be something like this:

NameVirtualHost *

<VirtualHost *>
	ServerName openspirit.de
	# you don't need a ServerAlias if it's the same as ServerName
	RewriteEngine on
	RewriteLogLevel 1
	... rule for openspirit.de
</VirtualHost>

<VirtualHost *>
	ServerName openspirit.homelinux.net
	RewriteEngine on
	RewriteLogLevel 1
	... rule for openspirit.homelinux.net
</VirtualHost>

Setup like this works perfectly for me.

Regards,
alex.
--
Aleksandar Radulovic
a 13 x dot net
http://a13x.net/
R.J. Oppenheimer: "I am become death, destroyer of worlds" (1945 AD)