You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by LuKreme <kr...@kreme.com> on 2013/08/05 22:48:05 UTC
[users@httpd] Re: Broken includes and cgis with Apache 2.4 update
On 04 Aug 2013, at 23:19 , LuKreme <kr...@kreme.com> wrote:
> I have a site with the following .htaccess:
>
> Options +ExecCGI +Includes
> AddType text/html .shtml
> AddOutputFilter INCLUDES .shtml
> AddType application/x-httpd-cgi .cgi/
> AddType application/x-httpd-cgi .pl
> AddType application/x-httpd-cgi .pl/
> AddType text/css .css
>
> I also have Addtype and AddOutputFilter lines in the httpd.conf (in the ifmodule mime_module, as well as the following block:
>
> <Directory "/usr/local/www">
> Options +Indexes +FollowSymLinks +Includes -SymLinksIfOwnerMatch
> AllowOverride All
> Require all granted
> </Directory>
>
> and on the index.shtml page I have
>
> <div class=purple>
> <!--#include file="menu.inc"-->
> </div>
>
> This all worked in apache 2.2 (with AddHandler server-parsed .shtml), but under 24 the menu.inc file is not
> loading. Since the content of the site has not changed in 11 years, so this is definitely something I've missed in the Apache configuration for 2.4.
>
> Also, none of the .pl files are being executed, instead just displaying their source.
any ideas? I'm pretty stuck.
--
gentlemen in England now a-bed Shall think themselves accursed the were
not here,
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: Broken includes and cgis with Apache 2.4 update
Posted by LuKreme <kr...@kreme.com>.
On 06 Aug 2013, at 05:05 , Eric Covener <co...@gmail.com> wrote:
> AllowOverride defaults to off in 2.4. Turn it on.
Ah, I have it enabled in httpd.conf, but not for the user's directories.
Thank you, I figured it was something simple.
--
99 percent of lawyers give the rest a bad name.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Broken includes and cgis with Apache 2.4 update
Posted by Eric Covener <co...@gmail.com>.
>> Temporarily add "Garbage In Out" to .htaccess and make the request again. If you don't get a 500 error (I think that's what you get for a bad .htaccess), that file isn't getting read.
>
> Ahah, no error.
>
> Why wouldn't it be read, it's at the DocumentRoot for the site and has 644 perms,
>
> # cat /etc/httpd/users/example.com.conf
> <virtualhost *:80>
> ServerName www.example.com
> ServerAlias exampleinstitute.com
> DocumentRoot /home/example/Sites/bi
> #LogLevel trace4
> ErrorLog /home/example/logs/bi.error_log
> CustomLog /home/example/logs/bi.access_log combined
> <directory "/home/example/Sites/bi">
> Require all granted
> </Directory>
> </virtualhost>
AllowOverride defaults to off in 2.4. Turn it on.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: Broken includes and cgis with Apache 2.4 update
Posted by LuKreme <kr...@kreme.com>.
On 05 Aug 2013, at 16:12 , Jeff Trawick <tr...@gmail.com> wrote:
> Temporarily add a new line "Garbage In Out" in httpd.conf right after
>
> Options +Indexes +FollowSymLinks +Includes -SymLinksIfOwnerMatch
apachectl -t
AH00526: Syntax error on line 219 of /usr/local/etc/apache24/httpd.conf:
Invalid command 'Garbage', perhaps misspelled or defined by a module not included in the server configuration
> Temporarily add "Garbage In Out" to .htaccess and make the request again. If you don't get a 500 error (I think that's what you get for a bad .htaccess), that file isn't getting read.
Ahah, no error.
Why wouldn't it be read, it's at the DocumentRoot for the site and has 644 perms,
# cat /etc/httpd/users/example.com.conf
<virtualhost *:80>
ServerName www.example.com
ServerAlias exampleinstitute.com
DocumentRoot /home/example/Sites/bi
#LogLevel trace4
ErrorLog /home/example/logs/bi.error_log
CustomLog /home/example/logs/bi.access_log combined
<directory "/home/example/Sites/bi">
Require all granted
</Directory>
</virtualhost>
--
I'm just going to go home, lie down, and listen to country
music. The music of pain.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Broken includes and cgis with Apache 2.4 update
Posted by Jeff Trawick <tr...@gmail.com>.
On Mon, Aug 5, 2013 at 5:56 PM, LuKreme <kr...@kreme.com> wrote:
>
> On 05 Aug 2013, at 15:01 , Jeff Trawick <tr...@gmail.com> wrote:
>
> > what's in the error log (with LogLevel debug) when you request the
> resource that doesn't get the proper include processing?
>
> [Mon Aug 05 15:37:46.560372 2013] [include:warn] [pid 89737] [client
> 23.24.150.141:59141] AH01374: mod_include: Options +Includes (or
> IncludesNoExec) wasn't set, INCLUDES filter removed: /index.shtml
>
Wow...
Temporarily add a new line "Garbage In Out" in httpd.conf right after
Options +Indexes +FollowSymLinks +Includes -SymLinksIfOwnerMatch
and see what "apachectl -t" says? (If it says OK, that Options +Includes
isn't getting activated.)
Temporarily add "Garbage In Out" to .htaccess and make the request again.
If you don't get a 500 error (I think that's what you get for a bad
.htaccess), that file isn't getting read.
Let us know what happens...
> setting LogLevel trace4:
>
> [Mon Aug 05 15:47:57.906489 2013] [http:trace4] [pid 89772]
> http_request.c(301): [client x.y.z.q:59435] Headers received from client:
> [Mon Aug 05 15:47:57.906545 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Host: www.example.com
> [Mon Aug 05 15:47:57.906557 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] DNT: 1
> [Mon Aug 05 15:47:57.906567 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Connection: keep-alive
> [Mon Aug 05 15:47:57.906575 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> [Mon Aug 05 15:47:57.906584 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] User-Agent: Mozilla/5.0
> (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.51.3 (KHTML, like Gecko)
> Version/7.0 Safari/537.51.3
> [Mon Aug 05 15:47:57.906593 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Accept-Language: en-us
> [Mon Aug 05 15:47:57.906603 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Accept-Encoding: gzip, deflate
> [Mon Aug 05 15:47:57.906612 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Cache-Control: max-age=0
> [Mon Aug 05 15:47:57.906680 2013] [authz_core:debug] [pid 89772]
> mod_authz_core.c(802): [client x.y.z.q:59435] AH01626: authorization result
> of Require all granted: granted
> [Mon Aug 05 15:47:57.906693 2013] [authz_core:debug] [pid 89772]
> mod_authz_core.c(802): [client x.y.z.q:59435] AH01626: authorization result
> of <RequireAny>: granted
> [Mon Aug 05 15:47:57.906703 2013] [core:trace3] [pid 89772]
> request.c(238): [client x.y.z.q:59435] request authorized without
> authentication by access_checker_ex hook: /
> [Mon Aug 05 15:47:57.906940 2013] [include:warn] [pid 89772] [client
> x.y.z.q:59435] AH01374: mod_include: Options +Includes (or IncludesNoExec)
> wasn't set, INCLUDES filter removed: /index.shtml
> [Mon Aug 05 15:47:57.906965 2013] [http:trace3] [pid 89772]
> http_filters.c(963): [client x.y.z.q:59435] Response sent with status 200,
> headers:
> [Mon Aug 05 15:47:57.906978 2013] [http:trace4] [pid 89772]
> http_filters.c(806): [client x.y.z.q:59435] Last-Modified: Sun, 04 Aug
> 2013 03:04:14 GMT
> [Mon Aug 05 15:47:57.906984 2013] [http:trace4] [pid 89772]
> http_filters.c(806): [client x.y.z.q:59435] Accept-Ranges: bytes
> [Mon Aug 05 15:47:57.906989 2013] [http:trace4] [pid 89772]
> http_filters.c(806): [client x.y.z.q:59435] Content-Length: 2682
> [Mon Aug 05 15:47:57.906994 2013] [http:trace4] [pid 89772]
> http_filters.c(806): [client x.y.z.q:59435] Keep-Alive: timeout=5, max=100
> [Mon Aug 05 15:47:57.907000 2013] [http:trace4] [pid 89772]
> http_filters.c(806): [client x.y.z.q:59435] Connection: Keep-Alive
> [Mon Aug 05 15:47:57.907005 2013] [http:trace4] [pid 89772]
> http_filters.c(806): [client x.y.z.q:59435] Content-Type: text/html
> [Mon Aug 05 15:47:57.979837 2013] [http:trace4] [pid 89773]
> http_request.c(301): [client x.y.z.q:59436] Headers received from client:,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:57.979863 2013] [http:trace4] [pid 89773]
> http_request.c(305): [client x.y.z.q:59436] Hos[Mon Aug 05
> 15:47:57.979869 2013] [http:trace4] [pid 89773] http_request.c(305):
> [client x.y.z.q:59436] Accept-Language: en-us, referer:
> http://www.example.com/
> [Mon Aug 05 15:47:57.979875 2013] [http:trace4] [pid 89773]
> http_request.c(305): [client x.y.z.q:59436] Accept-Encoding: gzip,
> deflate, referer: http://www.example.com/
> [Mon Aug 05 15:47:57.979881 2013] [http:trace4] [pid 89773]
> http_request.c(305): [client x.y.z.q:59436] Connection: keep-alive,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:57.979887 2013] [http:trace4] [pid 89773]
> http_request.c(305): [client x.y.z.q:59436] If-None-Match:
> \\"7d7-39dbdf7dd7ec0\\", referer: http://www.example.com/
> [Mon Aug 05 15:47:57.979892 2013] [http:trace4] [pid 89773]
> http_request.c(305): [client x.y.z.q:59436] Accept: text/css,*/*;q=0.1,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:57.979897 2013] [http:trace4] [pid 89773]
> http_request.c(305): [client x.y.z.q:59436] If-Modified-Since: Wed, 03
> Apr 2002 20:02:43 GMT, referer: http://www.example.com/
> [Mon Aug 05 15:47:57.979902 2013] [http:trace4] [pid 89773]
> http_request.c(305): [client x.y.z.q:59436] User-Agent: Mozilla/5.0
> (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.51.3 (KHTML, like Gecko)
> Version/7.0 Safari/537.51.3, referer: http://www.example.com/
> [Mon Aug 05 15:47:57.979908 2013] [http:trace4] [pid 89773]
> http_request.c(305): [client x.y.z.q:59436] Referer:
> http://www.example.com/, referer: http://www.example.com/
> [Mon Aug 05 15:47:57.979913 2013] [http:trace4] [pid 89773]
> http_request.c(305): [client x.y.z.q:59436] Cache-Control: max-age=0,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:57.979918 2013] [http:trace4] [pid 89773]
> http_request.c(305): [client x.y.z.q:59436] DNT: 1, referer:
> http://www.example.com/
> [Mon Aug 05 15:47:57.979960 2013] [authz_core:debug] [pid 89773]
> mod_authz_core.c(802): [client x.y.z.q:59436] AH01626: authorization result
> of Require all granted: granted, referer: http://www.example.com/
> [Mon Aug 05 15:47:57.979967 2013] [authz_core:debug] [pid 89773]
> mod_authz_core.c(802): [client x.y.z.q:59436] AH01626: authorization result
> of <RequireAny>: granted, referer: http://www.example.com/
> [Mon Aug 05 15:47:57.979974 2013] [core:trace3] [pid 89773]
> request.c(238): [client x.y.z.q:59436] request authorized without
> authentication by access_checker_ex hook: /bi.css, referer:
> http://www.example.com/
> [Mon Aug 05 15:47:57.980135 2013] [http:trace3] [pid 89773]
> http_filters.c(963): [client x.y.z.q:59436] Response sent with status 304,
> headers:, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106847 2013] [http:trace4] [pid 89772]
> http_request.c(301): [client x.y.z.q:59435] Headers received from client:,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106879 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Host: www.example.com,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106891 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Accept-Language: en-us,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106900 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Accept-Encoding: gzip,
> deflate, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106908 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Connection: keep-alive,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106917 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] If-None-Match:
> \\"d9fb-39cec692e7840\\", referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106929 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Accept: */*, referer:
> http://www.example.com/
> [Mon Aug 05 15:47:58.106938 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] If-Modified-Since: Sun, 24
> Mar 2002 10:02:01 GMT, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106946 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] User-Agent: Mozilla/5.0
> (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.51.3 (KHTML, like Gecko)
> Version/7.0 Safari/537.51.3, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106955 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Referer:
> http://www.example.com/, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106963 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Cache-Control: max-age=0,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106971 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] DNT: 1, referer:
> http://www.example.com/
> [Mon Aug 05 15:47:58.107024 2013] [authz_core:debug] [pid 89772]
> mod_authz_core.c(802): [client x.y.z.q:59435] AH01626: authorization result
> of Require all granted: granted, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.107031 2013] [authz_core:debug] [pid 89772]
> mod_authz_core.c(802): [client x.y.z.q:59435] AH01626: authorization result
> of <RequireAny>: granted, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.107037 2013] [core:trace3] [pid 89772]
> request.c(238): [client x.y.z.q:59435] request authorized without
> authentication by access_checker_ex hook: /images/lindo.jpg, referer:
> http://www.example.com/
> [Mon Aug 05 15:47:58.106879 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Host: www.example.com,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106891 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Accept-Language: en-us,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106900 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Accept-Encoding: gzip,
> deflate, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106908 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Connection: keep-alive,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106917 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] If-None-Match:
> \\"d9fb-39cec692e7840\\", referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106929 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Accept: */*, referer:
> http://www.example.com/
> [Mon Aug 05 15:47:58.106938 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] If-Modified-Since: Sun, 24
> Mar 2002 10:02:01 GMT, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106946 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] User-Agent: Mozilla/5.0
> (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.51.3 (KHTML, like Gecko)
> Version/7.0 Safari/537.51.3, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106955 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Referer:
> http://www.example.com/, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106963 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] Cache-Control: max-age=0,
> referer: http://www.example.com/
> [Mon Aug 05 15:47:58.106971 2013] [http:trace4] [pid 89772]
> http_request.c(305): [client x.y.z.q:59435] DNT: 1, referer:
> http://www.example.com/
> [Mon Aug 05 15:47:58.107024 2013] [authz_core:debug] [pid 89772]
> mod_authz_core.c(802): [client x.y.z.q:59435] AH01626: authorization result
> of Require all granted: granted, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.107031 2013] [authz_core:debug] [pid 89772]
> mod_authz_core.c(802): [client x.y.z.q:59435] AH01626: authorization result
> of <RequireAny>: granted, referer: http://www.example.com/
> [Mon Aug 05 15:47:58.107037 2013] [core:trace3] [pid 89772]
> request.c(238): [client x.y.z.q:59435] request authorized without
> authentication by access_checker_ex hook: /images/lindo.jpg, referer:
> http://www.example.com/
> [Mon Aug 05 15:47:58.107153 2013] [http:trace3] [pid 89772]
> http_filters.c(963): [client x.y.z.q:59435] Response sent with status 304,
> headers:, referer: http://www.example.com/
>
>
> > can you diff your entire 2.2 configuration with your 2.4 configuration
> (httpd.conf + any included files)?
>
> Not in any useful way. Enough little things changed in the logs that most
> lines are different. Also, my 22 conf was stripped of comments.
>
> > did you have Action somewhere in your 2.2 config which used those mime
> types associated with CGIs?
>
> Um... The only line referring to ".pl" in the old conf is
>
> AddIcon /icons/p.gif .pl .py
>
>
> > why are there slashes after .cgi and .pl?
>
> Because that's how the file was written in April of 2002.
>
> --
> The only good thing ever to come out of religion was the music.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--
Born in Roswell... married an alien...
http://emptyhammock.com/
[users@httpd] Re: Broken includes and cgis with Apache 2.4 update
Posted by LuKreme <kr...@kreme.com>.
On 05 Aug 2013, at 15:01 , Jeff Trawick <tr...@gmail.com> wrote:
> what's in the error log (with LogLevel debug) when you request the resource that doesn't get the proper include processing?
[Mon Aug 05 15:37:46.560372 2013] [include:warn] [pid 89737] [client 23.24.150.141:59141] AH01374: mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed: /index.shtml
setting LogLevel trace4:
[Mon Aug 05 15:47:57.906489 2013] [http:trace4] [pid 89772] http_request.c(301): [client x.y.z.q:59435] Headers received from client:
[Mon Aug 05 15:47:57.906545 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Host: www.example.com
[Mon Aug 05 15:47:57.906557 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] DNT: 1
[Mon Aug 05 15:47:57.906567 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Connection: keep-alive
[Mon Aug 05 15:47:57.906575 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[Mon Aug 05 15:47:57.906584 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.51.3 (KHTML, like Gecko) Version/7.0 Safari/537.51.3
[Mon Aug 05 15:47:57.906593 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Accept-Language: en-us
[Mon Aug 05 15:47:57.906603 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Accept-Encoding: gzip, deflate
[Mon Aug 05 15:47:57.906612 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Cache-Control: max-age=0
[Mon Aug 05 15:47:57.906680 2013] [authz_core:debug] [pid 89772] mod_authz_core.c(802): [client x.y.z.q:59435] AH01626: authorization result of Require all granted: granted
[Mon Aug 05 15:47:57.906693 2013] [authz_core:debug] [pid 89772] mod_authz_core.c(802): [client x.y.z.q:59435] AH01626: authorization result of <RequireAny>: granted
[Mon Aug 05 15:47:57.906703 2013] [core:trace3] [pid 89772] request.c(238): [client x.y.z.q:59435] request authorized without authentication by access_checker_ex hook: /
[Mon Aug 05 15:47:57.906940 2013] [include:warn] [pid 89772] [client x.y.z.q:59435] AH01374: mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed: /index.shtml
[Mon Aug 05 15:47:57.906965 2013] [http:trace3] [pid 89772] http_filters.c(963): [client x.y.z.q:59435] Response sent with status 200, headers:
[Mon Aug 05 15:47:57.906978 2013] [http:trace4] [pid 89772] http_filters.c(806): [client x.y.z.q:59435] Last-Modified: Sun, 04 Aug 2013 03:04:14 GMT
[Mon Aug 05 15:47:57.906984 2013] [http:trace4] [pid 89772] http_filters.c(806): [client x.y.z.q:59435] Accept-Ranges: bytes
[Mon Aug 05 15:47:57.906989 2013] [http:trace4] [pid 89772] http_filters.c(806): [client x.y.z.q:59435] Content-Length: 2682
[Mon Aug 05 15:47:57.906994 2013] [http:trace4] [pid 89772] http_filters.c(806): [client x.y.z.q:59435] Keep-Alive: timeout=5, max=100
[Mon Aug 05 15:47:57.907000 2013] [http:trace4] [pid 89772] http_filters.c(806): [client x.y.z.q:59435] Connection: Keep-Alive
[Mon Aug 05 15:47:57.907005 2013] [http:trace4] [pid 89772] http_filters.c(806): [client x.y.z.q:59435] Content-Type: text/html
[Mon Aug 05 15:47:57.979837 2013] [http:trace4] [pid 89773] http_request.c(301): [client x.y.z.q:59436] Headers received from client:, referer: http://www.example.com/
[Mon Aug 05 15:47:57.979863 2013] [http:trace4] [pid 89773] http_request.c(305): [client x.y.z.q:59436] Hos[Mon Aug 05 15:47:57.979869 2013] [http:trace4] [pid 89773] http_request.c(305): [client x.y.z.q:59436] Accept-Language: en-us, referer: http://www.example.com/
[Mon Aug 05 15:47:57.979875 2013] [http:trace4] [pid 89773] http_request.c(305): [client x.y.z.q:59436] Accept-Encoding: gzip, deflate, referer: http://www.example.com/
[Mon Aug 05 15:47:57.979881 2013] [http:trace4] [pid 89773] http_request.c(305): [client x.y.z.q:59436] Connection: keep-alive, referer: http://www.example.com/
[Mon Aug 05 15:47:57.979887 2013] [http:trace4] [pid 89773] http_request.c(305): [client x.y.z.q:59436] If-None-Match: \\"7d7-39dbdf7dd7ec0\\", referer: http://www.example.com/
[Mon Aug 05 15:47:57.979892 2013] [http:trace4] [pid 89773] http_request.c(305): [client x.y.z.q:59436] Accept: text/css,*/*;q=0.1, referer: http://www.example.com/
[Mon Aug 05 15:47:57.979897 2013] [http:trace4] [pid 89773] http_request.c(305): [client x.y.z.q:59436] If-Modified-Since: Wed, 03 Apr 2002 20:02:43 GMT, referer: http://www.example.com/
[Mon Aug 05 15:47:57.979902 2013] [http:trace4] [pid 89773] http_request.c(305): [client x.y.z.q:59436] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.51.3 (KHTML, like Gecko) Version/7.0 Safari/537.51.3, referer: http://www.example.com/
[Mon Aug 05 15:47:57.979908 2013] [http:trace4] [pid 89773] http_request.c(305): [client x.y.z.q:59436] Referer: http://www.example.com/, referer: http://www.example.com/
[Mon Aug 05 15:47:57.979913 2013] [http:trace4] [pid 89773] http_request.c(305): [client x.y.z.q:59436] Cache-Control: max-age=0, referer: http://www.example.com/
[Mon Aug 05 15:47:57.979918 2013] [http:trace4] [pid 89773] http_request.c(305): [client x.y.z.q:59436] DNT: 1, referer: http://www.example.com/
[Mon Aug 05 15:47:57.979960 2013] [authz_core:debug] [pid 89773] mod_authz_core.c(802): [client x.y.z.q:59436] AH01626: authorization result of Require all granted: granted, referer: http://www.example.com/
[Mon Aug 05 15:47:57.979967 2013] [authz_core:debug] [pid 89773] mod_authz_core.c(802): [client x.y.z.q:59436] AH01626: authorization result of <RequireAny>: granted, referer: http://www.example.com/
[Mon Aug 05 15:47:57.979974 2013] [core:trace3] [pid 89773] request.c(238): [client x.y.z.q:59436] request authorized without authentication by access_checker_ex hook: /bi.css, referer: http://www.example.com/
[Mon Aug 05 15:47:57.980135 2013] [http:trace3] [pid 89773] http_filters.c(963): [client x.y.z.q:59436] Response sent with status 304, headers:, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106847 2013] [http:trace4] [pid 89772] http_request.c(301): [client x.y.z.q:59435] Headers received from client:, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106879 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Host: www.example.com, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106891 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Accept-Language: en-us, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106900 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Accept-Encoding: gzip, deflate, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106908 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Connection: keep-alive, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106917 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] If-None-Match: \\"d9fb-39cec692e7840\\", referer: http://www.example.com/
[Mon Aug 05 15:47:58.106929 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Accept: */*, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106938 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] If-Modified-Since: Sun, 24 Mar 2002 10:02:01 GMT, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106946 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.51.3 (KHTML, like Gecko) Version/7.0 Safari/537.51.3, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106955 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Referer: http://www.example.com/, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106963 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Cache-Control: max-age=0, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106971 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] DNT: 1, referer: http://www.example.com/
[Mon Aug 05 15:47:58.107024 2013] [authz_core:debug] [pid 89772] mod_authz_core.c(802): [client x.y.z.q:59435] AH01626: authorization result of Require all granted: granted, referer: http://www.example.com/
[Mon Aug 05 15:47:58.107031 2013] [authz_core:debug] [pid 89772] mod_authz_core.c(802): [client x.y.z.q:59435] AH01626: authorization result of <RequireAny>: granted, referer: http://www.example.com/
[Mon Aug 05 15:47:58.107037 2013] [core:trace3] [pid 89772] request.c(238): [client x.y.z.q:59435] request authorized without authentication by access_checker_ex hook: /images/lindo.jpg, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106879 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Host: www.example.com, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106891 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Accept-Language: en-us, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106900 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Accept-Encoding: gzip, deflate, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106908 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Connection: keep-alive, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106917 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] If-None-Match: \\"d9fb-39cec692e7840\\", referer: http://www.example.com/
[Mon Aug 05 15:47:58.106929 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Accept: */*, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106938 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] If-Modified-Since: Sun, 24 Mar 2002 10:02:01 GMT, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106946 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.51.3 (KHTML, like Gecko) Version/7.0 Safari/537.51.3, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106955 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Referer: http://www.example.com/, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106963 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] Cache-Control: max-age=0, referer: http://www.example.com/
[Mon Aug 05 15:47:58.106971 2013] [http:trace4] [pid 89772] http_request.c(305): [client x.y.z.q:59435] DNT: 1, referer: http://www.example.com/
[Mon Aug 05 15:47:58.107024 2013] [authz_core:debug] [pid 89772] mod_authz_core.c(802): [client x.y.z.q:59435] AH01626: authorization result of Require all granted: granted, referer: http://www.example.com/
[Mon Aug 05 15:47:58.107031 2013] [authz_core:debug] [pid 89772] mod_authz_core.c(802): [client x.y.z.q:59435] AH01626: authorization result of <RequireAny>: granted, referer: http://www.example.com/
[Mon Aug 05 15:47:58.107037 2013] [core:trace3] [pid 89772] request.c(238): [client x.y.z.q:59435] request authorized without authentication by access_checker_ex hook: /images/lindo.jpg, referer: http://www.example.com/
[Mon Aug 05 15:47:58.107153 2013] [http:trace3] [pid 89772] http_filters.c(963): [client x.y.z.q:59435] Response sent with status 304, headers:, referer: http://www.example.com/
> can you diff your entire 2.2 configuration with your 2.4 configuration (httpd.conf + any included files)?
Not in any useful way. Enough little things changed in the logs that most lines are different. Also, my 22 conf was stripped of comments.
> did you have Action somewhere in your 2.2 config which used those mime types associated with CGIs?
Um... The only line referring to ".pl" in the old conf is
AddIcon /icons/p.gif .pl .py
> why are there slashes after .cgi and .pl?
Because that's how the file was written in April of 2002.
--
The only good thing ever to come out of religion was the music.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Broken includes and cgis with Apache 2.4 update
Posted by Jeff Trawick <tr...@gmail.com>.
On Mon, Aug 5, 2013 at 4:48 PM, LuKreme <kr...@kreme.com> wrote:
> On 04 Aug 2013, at 23:19 , LuKreme <kr...@kreme.com> wrote:
> > I have a site with the following .htaccess:
> >
> > Options +ExecCGI +Includes
> > AddType text/html .shtml
> > AddOutputFilter INCLUDES .shtml
> > AddType application/x-httpd-cgi .cgi/
> > AddType application/x-httpd-cgi .pl
> > AddType application/x-httpd-cgi .pl/
> > AddType text/css .css
> >
> > I also have Addtype and AddOutputFilter lines in the httpd.conf (in the
> ifmodule mime_module, as well as the following block:
> >
> > <Directory "/usr/local/www">
> > Options +Indexes +FollowSymLinks +Includes -SymLinksIfOwnerMatch
> > AllowOverride All
> > Require all granted
> > </Directory>
> >
> > and on the index.shtml page I have
> >
> > <div class=purple>
> > <!--#include file="menu.inc"-->
> > </div>
> >
> > This all worked in apache 2.2 (with AddHandler server-parsed .shtml),
> but under 24 the menu.inc file is not
> > loading. Since the content of the site has not changed in 11 years, so
> this is definitely something I've missed in the Apache configuration for
> 2.4.
> >
> > Also, none of the .pl files are being executed, instead just displaying
> their source.
>
> any ideas? I'm pretty stuck.
>
what's in the error log (with LogLevel debug) when you request the resource
that doesn't get the proper include processing?
can you diff your entire 2.2 configuration with your 2.4 configuration
(httpd.conf + any included files)?
did you have Action somewhere in your 2.2 config which used those mime
types associated with CGIs?
why are there slashes after .cgi and .pl?
>
> --
> gentlemen in England now a-bed Shall think themselves accursed the were
> not here,
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--
Born in Roswell... married an alien...
http://emptyhammock.com/