View Single Post
  #1   IP: 114.238.89.168
Old 2014-12-27, 05:21 PM
Madrid Madrid is offline
初级会员
 
Join Date: 2006-10-10
Posts: 1
Madrid 现在声名狼藉
Default 127.0.0.1,127.0.0.2,127.0.0.3,apache一机多ip配置

打开xampp/apache/conf/下的http.conf,

添加:
Code:
<VirtualHost 127.0.0.2:80>
    DocumentRoot "/xampp/htdocs/free-patent-search.net"
    ServerName 127.0.0.2:80
</VirtualHost>
<VirtualHost 127.0.0.3:80>
    DocumentRoot "/xampp/htdocs/hhhtzp.com"
    ServerName 127.0.0.3:80
</VirtualHost>
<VirtualHost 127.0.0.4:80>
    DocumentRoot "/xampp/htdocs/qhdzp.com"
    ServerName 127.0.0.4:80
</VirtualHost>
<VirtualHost 127.0.0.5:80>
    DocumentRoot "/xampp/htdocs/wlmqzp.com"
    ServerName 127.0.0.5:80
</VirtualHost>
<VirtualHost 127.0.0.6:80>
    DocumentRoot "/xampp/htdocs/sailguard.cn"
    ServerName 127.0.0.6:80
</VirtualHost>
<VirtualHost 127.0.0.7:80>
    DocumentRoot "/xampp/htdocs/absorbtech.cn"
    ServerName 127.0.0.7:80
</VirtualHost>
<VirtualHost 127.0.0.8:80>
    DocumentRoot "/xampp/htdocs/absorbtech.com.cn"
    ServerName 127.0.0.8:80
</VirtualHost>
<VirtualHost 127.0.0.9:80>
    DocumentRoot "/xampp/htdocs/xcart465"
    ServerName 127.0.0.9:80
</VirtualHost>



<Directory "/xampp/htdocs/free-patent-search.net">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride All
    Order Allow,Deny
    Allow from all
</Directory>
<Directory "/xampp/htdocs/hhhtzp.com">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride All
    Order Allow,Deny
    Allow from all
</Directory>
<Directory "/xampp/htdocs/qhdzp.com">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride All
    Order Allow,Deny
    Allow from all
</Directory>
<Directory "/xampp/htdocs/wlmqzp.com">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride All
    Order Allow,Deny
    Allow from all
</Directory>
<Directory "/xampp/htdocs/sailguard.cn">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride All
    Order Allow,Deny
    Allow from all
</Directory>
<Directory "/xampp/htdocs/absorbtech.cn">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride All
    Order Allow,Deny
    Allow from all
</Directory>
<Directory "/xampp/htdocs/absorbtech.com.cn">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride All
    Order Allow,Deny
    Allow from all
</Directory>
Reply With Quote