

         ö˿ڰװ

         ʷhttp://ķIP:8080/   	8080  Ƕ˿ڷʷ

         ԭһĬ80˿ڣʵhttp://ķIP:80/ 80Ժԡ 
         

         ˼·ǣ޸  httpd.conf  ļļc:\appserv\apache2.2\conf\ Ŀ¼

          
          
          1. ҵListen һУ
             Listen 8080
             Listen 8090  վ
 
          2. ҵLoadModule vhost_alias_module modules/mod_vhost_alias.so
             ȡǰ  #
          
          3. ҵ Include conf/extra/httpd-vhosts.conf ȥǰ #

          4. <Directory "C:/netexam_php">
                Options Indexes MultiViews
                AllowOverride None
                Order allow,deny  ԭ  order deny allow  ޸ģ
                Allow from all  
             </Directory>

           5. ҵ C:\AppServ\Apache2.2\conf\extra Ŀ¼ 

               httpd-vhosts.conf ü±


              <VirtualHost *:8080>
                  ServerAdmin webmaster@dummy-host.appservnetwork.com
                  DocumentRoot "c:\myfirst_php"     //8080 ָһվ
                  ServerName dummy-host.appservnetwork.com
                  ServerAlias www.dummy-host.appservnetwork.com
                  ErrorLog logs/dummy-host.appservnetwork.com-error_log
                 CustomLog logs/dummy-host.appservnetwork.com-access_log common
             </VirtualHost>

             <VirtualHost *:8090>
                 ServerAdmin webmaster@dummy-host2.appservnetwork.com
                 DocumentRoot "c:\second_php"     //8090 ָһվ
                 ServerName dummy-host2.appservnetwork.com
                 ErrorLog logs/dummy-host2.appservnetwork.com-error_log
                 CustomLog logs/dummy-host2.appservnetwork.com-access_log common
              </VirtualHost>

           6.  Apache 
               
         
        