您好,欢迎访问一九零五行业门户网

windows 域名+虚拟目录 (php)

1.修改windows 域名
c:\windows\system32\drivers\etc\hosts
127.0.0.1       localhost
192.168.0.100   abc
127.0.0.2    a
2.修改apache的虚拟目录
c:\xampp\apache\conf\extra\httpd-vhosts.conf
servername tradesns
 documentroot d:/tradesns
options followsymlinks includesnoexec indexes
  directoryindex index.html index.htm default.htm index.php default.php
  allowoverride all
  order deny,allow
  allow from all
servername a
 documentroot d:/tradesns2
options followsymlinks includesnoexec indexes
     directoryindex index.html index.htm default.htm index.php default.php
     allowoverride all
     order deny,allow
     allow from all
其它类似信息

推荐信息