web系の日記

web系のメモ

CentOS7+apache2.4にmod_cloudflare入れたらぶっ壊れた

httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since 日 2015-08-16 01:55:04 JST; 46s ago
  Process: 2710 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 2708 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 2708 (code=exited, status=1/FAILURE)
   CGroup: /system.slice/httpd.service

 8月 16 01:55:04 localhost.localdomain httpd[2708]: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syn...error
 8月 16 01:55:04 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
 8月 16 01:55:04 localhost.localdomain kill[2710]: kill: cannot find process ""
 8月 16 01:55:04 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
 8月 16 01:55:04 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
 8月 16 01:55:04 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

ひどすぎるわw

sudo vi /etc/httpd/conf/httpd.conf の353行目見ると

# Supplemental configuration
#
# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf
[root@localhost ~]# ls /etc/httpd/conf.d
README  autoindex.conf  cloudflare.conf  php.conf  userdir.conf  welcome.conf
[root@localhost ~]# rm /etc/httpd/conf.d/cloudflare.conf
rm: 通常ファイル `/etc/httpd/conf.d/cloudflare.conf' を削除しますか? y

なんでやろ・・?