为什么APACHE设置了多站点,重写模块就失效了?
就改了两个文件
重启apache以后显示403Forbidden (这是预期的,因为根目录下没有index.php,真正的首页在其他文件夹里,通过重写url访问)
【httpd-vhosts.conf】
<br />#<br /># Virtual Hosts<br />#<br /># If you want to maintain multiple domains/hostnames on your<br /># machine you can setup VirtualHost containers for them. Most configurations<br /># use only name-based virtual hosts so the server doesn't need to worry about<br /># IP addresses. This is indicated by the asterisks in the directives below.<br />#<br /># Please see the documentation at <br /># <URL:http://httpd.apache.org/docs/2.2/vhosts/><br /># for further details before you try to setup virtual hosts.<br />#<br /># You may use the command line option '-S' to verify your virtual host<br /># configuration.<br /><br />#<br /># Use name-based virtual hosting.<br />#<br />NameVirtualHost *:80<br /><br />#<br /># VirtualHost example:<br /># Almost any Apache directive may go into a VirtualHost container.<br /># The first VirtualHost section is used for all requests that do not<br /># match a ServerName or ServerAlias in any <VirtualHost> block.<br />#<br /><VirtualHost *:80><br /> ServerAdmin [email protected]<br /> DocumentRoot E:\mcmod\www<br /> ServerName dummy-host.appservnetwork.com<br /> ServerAlias www.dummy-host.appservnetwork.com<br /> ErrorLog logs/dummy-host.appservnetwork.com-error_log<br /> CustomLog logs/dummy-host.appservnetwork.com-access_log common<br /></VirtualHost><br /><br />NameVirtualHost *:90<br /><br /><VirtualHost *:90><br /> ServerAdmin [email protected]<br /> DocumentRoot E:\mcmod\video<br /> ServerName dummy-host2.appservnetwork.com<br /> ErrorLog logs/dummy-host2.appservnetwork.com-error_log<br /> CustomLog logs/dummy-host2.appservnetwork.com-access_log common<br /></VirtualHost>