[问题]Apache2虚拟主机配置成功,但不能打开php的网页,请高手帮忙!

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
kavenzou
帖子: 3
注册时间: 2006-10-20 6:47
送出感谢: 0
接收感谢: 0

[问题]Apache2虚拟主机配置成功,但不能打开php的网页,请高手帮忙!

#1

帖子 kavenzou » 2007-02-13 13:28

不知道为什么,设置虚拟主机后,可以正确访问特定的目录,但是不能打开phpmyadmin, 我用一个php文件只显示phpinfo()也不行,浏览器只在不停地等待...最后只有一个空白页面. 请各位高手指点一下.(用内网ip地址可以正常访问php页面)

apache2虚拟主机配置:
default:

代码: 全选

NameVirtualHost *
<VirtualHost *>
ServerName abc.3322.org
ServerAdmin webmaster@abc.3322.org
DocumentRoot /var/www/mainsite
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/mainsite>
Options Indexes FollowSymLink MultiView
AllowOverride None
order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiView +SymLinksIfOwnerMatch
order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>


phpmyadmin

代码: 全选

<VirtualHost *>
ServerName phpmyadmin.abc.3322.org
ServerAdmin webmaster@abc.3322.org
DocumentRoot /var/www/phpmyadmin
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/site1>
Options Indexes FollowSymLink MultiView
AllowOverride None
order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiView +SymLinksIfOwnerMatch
order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>


testsite

代码: 全选

<VirtualHost *>
ServerName testsite.abc.3322.org
ServerAdmin webmaster@abc.3322.org
DocumentRoot /var/www/testsite
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/testsite>
Options Indexes FollowSymLink MultiView
AllowOverride None
order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiView +SymLinksIfOwnerMatch
order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
回复

回到 “服务器基础应用”