当我尝试使用“www”加载我的网站之一时,我收到错误 500。
www.catherinesmith.net
没有www,它工作正常。我有多个使用虚拟主机托管的站点。我通过删除它并将其替换为另一个运行良好的站点来排除虚拟主机配置,然后在域中替换它。
[Wed Aug 28 20:56:06 2013] [notice] caught SIGTERM, shutting down
[Wed Aug 28 20:56:07 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.7 with Suhosin-Patch configured -- resuming no$
我还通过删除所有内容并在其中制作带有“HI”的 index.php 来排除站点文件夹中的任何文件。
我也刚刚禁用了站点虚拟主机,因此它应该只指向主 IP(仅列出托管站点)。catherinesmith.net 加载正常,但 www.catherinesmith.net 仍然给出错误 500!我正在把头发拉到这个上面。我不知道是什么原因造成的,或者我还能尝试什么......
虚拟主机:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/catherinesmith.net
#Custom
ServerName catherinesmith.net
ServerAlias www.catherinesmith.net
php_admin_value open_basedir /var/www/catherinesmith.net/:/tmp/
#Custom
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/catherinesmith.net/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
DirectoryIndex index.php index.html
</VirtualHost>