我的Apache错误日志爆炸与以下错误,但我不知道这是什么意思。
[Fri Aug 21 16:29:02.433153 2015] [rewrite:trace2] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de710a0/initial] init rewrite engine with requested uri / [Fri Aug 21 16:29:02.433191 2015] [rewrite:trace1] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de710a0/initial] pass through / [Fri Aug 21 16:29:02.433242 2015] [rewrite:trace2] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de730a0/subreq] init rewrite engine with requested uri /index.html [Fri Aug 21 16:29:02.433249 2015] [rewrite:trace1] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de730a0/subreq] pass through /index.html [Fri Aug 21 16:29:02.433275 2015] [rewrite:trace2] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de730a0/subreq] init rewrite engine with requested uri /index.cgi [Fri Aug 21 16:29:02.433281 2015] [rewrite:trace1] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de730a0/subreq] pass through /index.cgi [Fri Aug 21 16:29:02.433296 2015] [rewrite:trace2] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de730a0/subreq] init rewrite engine with requested uri /index.pl [Fri Aug 21 16:29:02.433302 2015] [rewrite:trace1] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de730a0/subreq] pass through /index.pl [Fri Aug 21 16:29:02.433334 2015] [rewrite:trace2] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de730a0/subreq] init rewrite engine with requested uri /index.php [Fri Aug 21 16:29:02.433340 2015] [rewrite:trace1] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de730a0/subreq] pass through /index.php [Fri Aug 21 16:29:02.433359 2015] [rewrite:trace2] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de730a0/subreq] init rewrite engine with requested uri /index.xhtml [Fri Aug 21 16:29:02.433365 2015] [rewrite:trace1] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de730a0/subreq] pass through /index.xhtml [Fri Aug 21 16:29:02.433383 2015] [rewrite:trace2] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de730a0/subreq] init rewrite engine with requested uri /index.htm [Fri Aug 21 16:29:02.433388 2015] [rewrite:trace1] [pid 1389] mod_rewrite.c(468): [client 78.136.44.20:46348] 78.136.44.20 - - [commerce1.bigdealsmedia.net/sid#7f6c6df3f658][rid#7f6c6de730a0/subreq] pass through /index.htm [Fri Aug 21 16:29:02.433409 2015] [autoindex:error] [pid 1389] [client 78.136.44.20:46348] AH01276: Cannot serve directory /var/www/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive
我的.htaccess看起来像这样。
Options +FollowSymLinks RewriteEngine On # Rewrite item.php RewriteRule ^item/([a-z0-9]+)/.+$ /item.php?item_id=$1 [L] # Rewrite page.php RewriteRule ^page/([a-z0-9]+)/.+$ /page.php?page_id=$1 [L] # Rewrite sitemap.xml RewriteRule ^sitemap.xml$ sitemap.php [L] # Remove .php from URL RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php # Remove www from URL RewriteCond %{HTTP_HOST} ^www\.(.+) RewriteCond %{HTTPS}s/%1 ^(on(s)|offs)/(.+) RewriteRule ^ http%2://%3%{REQUEST_URI} [L,R=301]
希望有人能把我指向正确的方向。
你确定要使用Apache 2.2吗? 事件的语法[rewrite:trace..]
表示2.4。
您将需要查找虚拟主机定义并查看哪些LogLevel设置在那里。 它必须至less是trace2。 你可能只需要信息或更高。 在这里看到。 有关日志级别的详细信息,请参阅此处 。