Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

httpd.conf, help please..

Reply
 
Thread Tools Display Modes
  #1  
Old 10-20-2003, 05:02 PM
Default httpd.conf, help please..



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.-


Sitorus Wenny
Reply With Quote
Reply

Tags
httpdconf

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:03 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.