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/

相关文章:

android - Android:在Ubuntu 16.04上运行应用程序时花费过多时间进行Gradle构建

linux - 如何在 apache 服务器上为 iperf3 配置端口

python - 在 python,cgi-bin 中将图像返回给浏览器

c - 文件描述符的代码问题。 C (Linux)

linux - Vim 通过 ssh 在 mac 和 ubuntu 之间复制剪贴板

bash - 此命令只能由 root 使用

python - Python 中的 Ubuntu 系统托盘

PHP:使用带有 mysqli_connect 的持久连接会导致管道损坏错误

javascript - 是否可以让 MySQL 下的数据库将行导出到可通过 Web 访问的托管文件夹中?

php - 在没有 PHP 扩展名的 CSS 文件中包含 PHP