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: Require directive not working with mod_authz_core module
Author
gnzl_



Joined: 16 Feb 2024
Posts: 2

PostPosted: Fri 16 Feb '24 19:11    Post subject: Require directive not working with mod_authz_core module Reply with quote

Hi all,

require directive doesn't make any changes on my virtualhost. If I use 2.2 syntax (allow, deny) it works fine.

For instance, something as simple as
Code:
require all denied

won't impact on the site access.

I've been using some require restrictions successfully on this server, and noticed it's not working now

OS: Centos 7
Apache: 2.4.6

Code:

$ sudo apachectl -M | grep authz
 authz_core_module (shared)
 authz_dbd_module (shared)
 authz_dbm_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_owner_module (shared)
 authz_user_module (shared)


I appreciate any hint you could give me.
Back to top
gnzl_



Joined: 16 Feb 2024
Posts: 2

PostPosted: Tue 20 Feb '24 13:31    Post subject: Reply with quote

I finally managed to solve it.

There was a .conf file with a <Location> directive using a regex pattern intended for another domain. This pattern was matching and consequently overriding the access control settings.

The debug log level was very helpful.

Additionally, I disabled the access_compat module.
Back to top


Reply to topic   Topic: Require directive not working with mod_authz_core module View previous topic :: View next topic
Post new topic   Forum Index -> Apache