使用虚拟主机,如果配置文件错误,则打开虚拟主机的网址不能正常打开,出现APACHE的测试页面。
<Directory "/">
Options FollowSymLinks
#AllowOverride all
AllowOverride FileInfo
</Directory>
<Directory "/var/www/html">
Options Indexes Includes FollowSymLinks
AllowOverride None
Allow from all
Order allow,deny
</Directory>
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Allow from all
Order allow,deny
</Directory>
<Directory "/var/www/cgi-bin">
Options ExecCGI
AllowOverride None
Allow from all
Order allow,deny
</Directory>
NameVirtualHost *:80
Alias /zgds "/var/www/zgds/"
# Virtual host zgds
<VirtualHost *:80>
DocumentRoot "/var/www/zgds"
ServerAdmin root@zgds.cc
ServerName
<Directory "/var/www/zgds">
Options Indexes Includes FollowSymLinks
AllowOverride FileInfo
Allow from all
Order allow,deny
</Directory>
</VirtualHost>
Alias /cxyl "/var/www/cxyl/"
# Virtual host cxyl
<VirtualHost *:80>
DocumentRoot /var/www/cxyl
ServerAdmin root@cxyl.com.cn
ServerName
<Directory "/var/www/cxyl">
Options Indexes Includes FollowSymLinks
AllowOverride FileInfo
Allow from all
Order allow,deny
</Directory>
</VirtualHost>
Alias /kxkg "/var/www/kxkg/"
# Virtual host kxkg
<VirtualHost *:80>
DocumentRoot "/var/www/kxkg/"
ServerAdmin root@kxkg.net
ServerName
<Directory "/var/www/kxkg">
Options Indexes Includes FollowSymLinks
AllowOverride FileInfo
Allow from all
Order allow,deny
</Directory>
</VirtualHost>
|
阅读(936) | 评论(0) | 转发(0) |