Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite doesn't work when applied with "virtualhost"

         

Sxperm

7:36 am on Aug 14, 2006 (gmt 0)

10+ Year Member



Hi there, I do test server by installed appserv 2.4.5 that come with

Apache 1.3.34
PHP 4.4.1
MySQL 5.0.16
phpMyAdmin-2.5.7-pl1

and mod_rewrite has been enabled by default.

It works well until I inserted "virtualhost" to create multiple-site in my l
ocalhost by inserted these lines. in apache httpd config file. (line 152)

Listen 80
Listen 8080

NameVirtualHost 127.0.0.1:80
NameVirtualHost 127.0.0.1:8080

<VirtualHost 127.0.0.1:80>
ServerName www.test1.com
DocumentRoot H:/test1
</VirtualHost>

<VirtualHost 127.0.0.2:80>
ServerName www.test2.com
DocumentRoot H:/test2
</VirtualHost>

<VirtualHost 127.0.0.3:80>
ServerName www.test3.com
DocumentRoot H:/test3
</VirtualHost>

What's wrong with my localhost? Please give me some suggestion.

willybfriendly

8:12 am on Aug 14, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You will need to configure each virual host with the proper directives to handle .htaccess and any other apache directives you might want to use.

WBF