AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 563182
Accepted
Anatol
Anatol
Asked: 2013-12-24 07:41:24 +0800 CST2013-12-24 07:41:24 +0800 CST 2013-12-24 07:41:24 +0800 CST

Apache 2 重启失败

  • 772

圣诞节快乐!

我正在设置一个 Ubuntu 12.04 网络服务器。因此我安装了 Apache2,也安装了 mod_security。我编辑了有关 mod_security 的配置。昨天一切正常。

今天我很想重新启动 Apache,但这失败并出现以下错误:

$ /etc/init.d/apache2 restart

Syntax error on line 2 of /etc/apache2/conf.d/DEADJOE:
Invalid command '***', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
   ...fail!

我检查了 apache 错误日志,但在 syslog 中找不到任何相同的内容。/etc/apache2/conf.d/DEADJOE 的内容是:

*** These modified files were found in JOE when it aborted on Mon Dec 23 14:48:44 2013
*** JOE was aborted because the terminal closed

*** File '(Unnamed)'
/etc/modsecurity/modsecurity.conf
/etc/apache2/mods-available/mod-security.conf
/etc/modsecurity/modsecurity.conf
/var/log/apache2/error.log
/etc/apache2/conf.d/modsecurity.conf
/etc/apache2
security
/etc/modsecurity/modsecurity.conf
/var/log/apache2/error.log
/etc/modsecurity/modsecurity.conf
/var/log/apache2/error.log

谢谢你的帮助!

托尼

apache-2.2
  • 1 1 个回答
  • 271 Views

1 个回答

  • Voted
  1. Best Answer
    GeoSword
    2013-12-24T07:48:01+08:002013-12-24T07:48:01+08:00

    看起来 joe 编辑器崩溃了,并产生了某种转储。将 /etc/apache2/conf.d/DEADJOE 移动到其他地方(例如 /var/tmp),然后尝试重新启动。或者,您可以将 apache 配置为仅查找具有特定扩展名的配置文件

    Include /etc/apache2/sites-available/*.conf
    
    • 1

相关问题

  • Apache Django Mod_Wsgi - 自动重新加载应用程序

  • Apache:对多个虚拟主机使用相同的目录指令

  • Apache 上的子域不工作 - 找不到服务器

  • PHP 作为 CGI 还是 Apache 模块?

  • 避免将某些丢失的文件记录到 Apache2 错误日志中

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve