torlee 发表于 2017-12-24 19:49:02

php之Apache配置虚拟主机

<VirtualHost *:8081>  
ServerName localhost
  
DirectoryIndex index
.php  
DocumentRoot
"D:\Work\php\Apache24\htdocs"  
<Directory "D:\Work\php\Apache24\htdocs">   
  
Options Indexes FollowSymLinks   
  
AllowOverride None   
  
Order allow,deny   
  
Allow from all   
  
</Directory>   
  
</VirtualHost>
  

  
<VirtualHost *:8081>
  
ServerName www.aa.com
  
DirectoryIndex index.php   
  
DocumentRoot "E:\php\PhpProjectBase"
  
<Directory "E:\php\PhpProjectBase">   
  
Options Indexes FollowSymLinks   
  
AllowOverride None   
  
Order allow,deny   
  
Allow from all   
  
</Directory>   
  
</VirtualHost>
页: [1]
查看完整版本: php之Apache配置虚拟主机