Forum Moderators: phranque

Message Too Old, No Replies

URL rewrite problem while using "Listen" and "virtualhost"

apache virtual host and listen problem.

         

Sxperm

6:36 am on Aug 13, 2006 (gmt 0)

10+ Year Member



Hi, I use appserv to make my own test server. It works well except problem
with url_rewrite even rewrite function has been enabled by default. I editt
ed apache 1.3.34 httpd by add these lines. at 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>

Please give me some suggestion.

Regards,

Psychopsia

3:55 pm on Aug 25, 2006 (gmt 0)

10+ Year Member



The following works for me:

Listen 8080

NameVirtualHost 127.0.0.1:8080

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

<Directory "H:/test1">
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>