找到httpd.conf文件,用记事本打开 拖到最下面,仿照下面的代码改改......... httpd.conf文件在Apache\conf下 #<VirtualHost *:80> # ServerAdmin webmaster@dummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common #</VirtualHost>
LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php .php
<VirtualHost 192.168.0.10:80> DocumentRoot "D:\zh" </VirtualHost> <VirtualHost 192.168.0.11:80> DocumentRoot "D:\anlixp" </VirtualHost> <VirtualHost 192.168.0.12:80> DocumentRoot "E:\oa" </VirtualHost> <VirtualHost 192.168.0.13:80> DocumentRoot "E:\newsys" </VirtualHost>