军哥你好,就像标题说的,创建虚拟主机后,默认主机无法访问,请问是否需要修改配置文件,又该怎么修改。 下面是默认主机配置文件
<VirtualHost *:88>
ServerAdmin webmaster@example.com
#php_admin_value open_basedir "/home/wwwroot/default:/tmp/:/var/tmp/:/proc/"
DocumentRoot "/mnt/home/www/www.jbyan.com"
ServerName www.jbyan.com
ErrorLog "/home/wwwlogs/IP-error_log"
CustomLog "/home/wwwlogs/IP-access_log" combined
<Directory "/mnt/home/www/www.jbyan.com">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.html index.php
</Directory>
</VirtualHost>
下面是虚拟主机配置文件
<VirtualHost *:88>
ServerAdmin 3489342261@qq.com
php_admin_value open_basedir "/mnt/home/www/www.whlzj.com:/tmp/:/var/tmp/:/proc/"
DocumentRoot "/mnt/home/www/www.whlzj.com"
ServerName www.whlzj.com
ServerAlias whlzj.com
ErrorLog "/home/wwwlogs/www.whlzj.com-error_log"
CustomLog "/home/wwwlogs/www.whlzj.com-access_log" combined
<Directory "/mnt/home/www/www.whlzj.com">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.html index.php
</Directory>
</VirtualHost>
请问是哪里出现问题 |