- httpd.conf, help please..

PDA

View Full Version : httpd.conf, help please..


Sitorus Wenny
07-24-2004, 10:05 PM
Dear all.. please help, why it doesnt work.

# name virtual host
#
NameVirtualHost 133.21.xxx.xxx

<VirtualHost 133.22.xxx.xxx>
DocumentRoot /var/www/html
ServerName www.orig.dinamik.net
RewriteEngine On
RewriteRule ^/.* /var/www/html/index.html
</VirtualHost>

<VirtualHost 133.22.xxx.xxx>
DocumentRoot /var/www/html/test
ServerName www.ti2003.dinamik.net
ServerPath /test/
RewriteEngine On
RewriteRule ^(/test/.*) /var/www/html$1
</VirtualHost>

Why a request to http://www.ti2003.dinamik.net/ be served in the same
way with a request to http://www.orig.dinamik.net/ and it doesn't go
to the directory /var/www/html/test and execute the index.php put in
there?

Thanks.

ss.wenny.-