質問: ### 前提・実現したいこと 自宅PCでWEBサーバを立てて勉強中です。 オレオレ証明書&秘密鍵を作成し、/etc/httpd/conf/に配置後、 service rehttpdとしたところ、エラーが出ました。 それまでhttpで接続できていたのが、接続不可となりました。 エラーメッセージ [root@localhost ~]# service httpd start Redirecting to /bin/systemctl start httpd.service Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. [root@localhost ~]# systemctl status httpd.service ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since 火 2017-08-08 05:45:45 PDT; 8s ago Docs: man:httpd(8) man:apachectl(8) Process: 47121 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 47118 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 47118 (code=exited, status=1/FAILURE) Linuxについては初心者で、とても初歩的な質問で大変恐縮です。 切り分けに必要な情報が不足していれば、ご教示ください。 よろしくお願いします。
回答: 3nekoさん 早速の回答ありがとうございます。 アドバイスいただいたように、以下取得いたしました。 [root@localhost httpd]# cat error_log [Tue Aug 08 04:53:51.147197 2017] [core:notice] [pid 11383] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 [Tue Aug 08 04:53:51.148294 2017] [suexec:notice] [pid 11383] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message [Tue Aug 08 04:53:51.161234 2017] [auth_digest:notice] [pid 11383] AH01757: generating secret for digest authentication ... [Tue Aug 08 04:53:51.162530 2017] [lbmethod_heartbeat:notice] [pid 11383] AH02282: No slotmem from mod_heartmonitor [Tue Aug 08 04:53:51.180796 2017] [mpm_prefork:notice] [pid 11383] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations [Tue Aug 08 04:53:51.180825 2017] [core:notice] [pid 11383] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Tue Aug 08 04:58:46.684371 2017] [autoindex:error] [pid 11386] [client 192.168.6.1:52261] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive [Tue Aug 08 05:21:18.503131 2017] [mpm_prefork:notice] [pid 11383] AH00170: caught SIGWINCH, shutting down gracefully と出ます。