httpd.conf, help please..

This is a discussion on httpd.conf, help please.. within the Linux Networking forums, part of the Linux Forums category; Dear all.. please help, why it doesnt work. # name virtual host # NameVirtualHost 133.21.xxx.xxx <VirtualHost 133.22....


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-20-2003
Sitorus Wenny
 
Posts: n/a
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.-
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0