ubuntu - 使用 "WWW"时出现错误 500,[notice] 捕获 SIGTERM,正在关闭

标签 ubuntu apache2

当我尝试使用“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>

最佳答案

你如何为 www/without 别名设置你的虚拟主机?

刚看了我的,我把它设置成这样的例子:http://httpd.apache.org/docs/2.2/vhosts/examples.html#intraextra

<VirtualHost 192.168.1.1 172.20.30.40>
    DocumentRoot /www/server1
    ServerName server.example.com
    ServerAlias example.com
</VirtualHost> 

令人惊讶的是 SIGTERM/restart 是一个错误,即使虚拟主机定义是问题所在。

关于ubuntu - 使用 "WWW"时出现错误 500,[notice] 捕获 SIGTERM,正在关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18498648/

相关文章:

shell - 在 shell 文件中使用 xautomation

ruby-on-rails - Ubuntu 终端 : I can't seem to launch programs from my terminal anymore. 我使用 sublime、rails 和 heroku

perl - 如何找出安装了哪个版本的mod_perl?

apache2 - Apache 服务器 "ImportError: No module named site"

apache - apache 虚拟主机设置中的禁止错误

apache2 - Apache2 支持子域的虚拟托管吗?

codeigniter - 将 codeigniter 从 3.1.3 升级到 3.1.4 时出错

linux - MonetDB 上的 Datacell 入门

ubuntu - 开放流: Hosts can't ping 100% packet loss - miniedit

python - 无法使用 subprocess.Popen 在 Web 服务中打开 pdf 文件