apache虚拟总机

NameVirtualHost *:80
<VirtualHost *:80>
 ServerName www.easycoo.net
 DocumentRoot "C:/web"
<Directory "C:/web"> 
 Options FollowSymLinks IncludesNOEXEC Indexes
 DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
 AllowOverride Options FileInfo 
 Order Deny,Allow 
 Allow from all 
</Directory>
</VirtualHost>

直接把上面代码拷贝到apache的conf文件中,更改 ServerName 和DocumentRoot 就可以。

你可能感兴趣的:(apache,职场,休闲,虚拟总机)