logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Flawed behaviour related to server and virtualhost config
Author
NewEraCracker



Joined: 23 Aug 2010
Posts: 36

PostPosted: Sun 28 Aug '11 21:16    Post subject: Flawed behaviour related to server and virtualhost config Reply with quote

Hello,

I am using Apache httpd 2.2.19 x86 Apache.org win32 binaries.

Apache httpd seems to ignore any htaccess definable configuration (sometimes even virtualhost definable configuration) when the configuration is done in server level but not at virtual host or htaccess level.

This is a flawed behavior and I believe this to be a bug.

Some directives that have may have this problem:
http://httpd.apache.org/docs/2.2/mod/core.html#limitexcept <-- Not documented (Tested)
http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody <-- Not documented (Not Tested)
http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestline <-- Documented (Tested)

I'd expect that this configuration in the server level:

<LimitExcept POST GET>
</LimitExcept>

Would block any requests other than GET, POST or HEAD at the level of all virtualhosts, which does not occur. The workaround is to put the configuration in virtualhosts which is rather unpractical.

Any thoughts on this issue?


Last edited by NewEraCracker on Mon 29 Aug '11 3:22; edited 1 time in total
Back to top
NewEraCracker



Joined: 23 Aug 2010
Posts: 36

PostPosted: Sun 28 Aug '11 23:36    Post subject: Reply with quote

This works in denying requests other than POST or GET but exposes .htaccess files

Code:
<Location />
<LimitExcept POST GET>
Order allow,deny
Deny from all
</LimitExcept>
</Location>


------------------

Still looking for a proper fix.
Back to top


Reply to topic   Topic: Flawed behaviour related to server and virtualhost config View previous topic :: View next topic
Post new topic   Forum Index -> Apache