网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   操作系统 (https://www.0058.net/forumdisplay.php?f=85)
-   -   127.0.0.1,127.0.0.2,127.0.0.3,apache一机多ip配置 (https://www.0058.net/showthread.php?t=4919)

Madrid 2014-12-27 05:21 PM

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>



All times are GMT +8. The time now is 06:06 AM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.