質問編集履歴
1
試した内容を補足
test
CHANGED
File without changes
|
test
CHANGED
@@ -39,3 +39,63 @@
|
|
39
39
|
error_log:[Sun Jan 07 21:10:41.810355 2018] [so:warn] [pid 6379] AH01574: module rewrite_module is already loaded, skipping
|
40
40
|
|
41
41
|
が出ているので、rewrite のモジュールはhttpdに反映されているとおもいます。
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
.htaccess はcakePHPで提供されるもので、私が意図的に編集、作成したものでなく中身はわかりませんが、移行されています。
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
調査のために、
|
52
|
+
|
53
|
+
RewriteLog /tmp/rewrite.log
|
54
|
+
|
55
|
+
RewriteLogLevel 9
|
56
|
+
|
57
|
+
という記述をhttpd.conf
|
58
|
+
|
59
|
+
以下のように、include に続いて追記
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
Include conf.modules.d/*.conf
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
RewriteLog /tmp/rewrite.log
|
68
|
+
|
69
|
+
RewriteLogLevel 9
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
すると
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
1月 08 01:06:33 testhost httpd[6808]: [Mon Jan 08 01:06:33.610291 2018] [so:warn] [pid 6808] AH01574: module r
|
84
|
+
|
85
|
+
1月 08 01:06:33 testhost httpd[6808]: AH00526: Syntax error on line 59 of /etc/httpd/conf/httpd.conf:
|
86
|
+
|
87
|
+
1月 08 01:06:33 testhost httpd[6808]: Invalid command 'RewriteLog', perhaps misspelled or defined by a module
|
88
|
+
|
89
|
+
1月 08 01:06:33 testhost systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
|
90
|
+
|
91
|
+
1月 08 01:06:33 testhost kill[6809]: kill: cannot find process ""
|
92
|
+
|
93
|
+
1月 08 01:06:33 testhost systemd[1]: httpd.service: control process exited, code=exited status=1
|
94
|
+
|
95
|
+
1月 08 01:06:33 testhost systemd[1]: Failed to start The Apache HTTP Server.
|
96
|
+
|
97
|
+
-- Subject: Unit httpd.service has failed
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
となり、apacheを再起動できないので、はずしています。
|