Questions tagged [mod-authz-host]

12 questions
15
votes
1 answer

AH01626: authorization result of Require all granted: granted

I'm running apache 2.4.6 on my site. And I keep seeing this message repeated over and over again in my apache error logs. [Tue Nov 10 01:42:40.659710 2015] [authz_core:debug] [pid 10727] mod_authz_core.c(809): [client 107.170.139.115:58678] AH01626:…
bluethundr
  • 1,005
  • 17
  • 68
  • 141
6
votes
2 answers

Apache Deny but allow to sub Location

I am using Apache2.2 as the front end to a tomcat server. I want to restrict access to a location however allow all access to a sub-location but am having some trouble. What I currently have is: AllowOverride None …
mdizzy
  • 89
  • 1
  • 1
  • 6
3
votes
2 answers

Enabling Indexes (folder views) using htaccess with Apache 2.4 mod_authz_host based on IP

Need to enable Indexes in apache 2.4 throughh htaccess based on IP. For example, IP 192.168.x.x I tried putting the directive in the apache2.conf file like: Options -Indexes +FollowSymLinks…
Michael Fever
  • 845
  • 2
  • 8
  • 26
3
votes
5 answers

Blocking of IP in .htaccess not working

I try to configure a simple block of an IP address in my .htaccess. I followed examples I found here in this forum, that seemed to work fine for other users, but do not work for me and I really don't get why. My .htaccess file is very simple: Order…
user3516800
  • 31
  • 1
  • 2
2
votes
0 answers

Exclude subfolder in Codeigniter using htaccess rewriterule

I'm using following .htaccess code to hide index.php in CodeIgniter. RewriteBase / RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$ RewriteRule ^.*$ - [E=CWD:%2] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond…
1
vote
1 answer

How to block unwanted hosts in .htaccess?

These .htaccess rules work: Require all granted Require not ip 1.22.333.444 . . . These .htaccess rules don't work: Require all granted . . . Require not host bad_host These .htaccess rules…
josefus
  • 47
  • 4
1
vote
1 answer

Is repeating "Deny from x.x.x.x" and "Allow from all" correct

I am using following syntax to block some IPs from my .htaccess file: DirectoryIndex index.php order allow,deny deny from 17.18.19.0 deny from 18.17.19.1 allow from all and now I am not sure if I can even use this: DirectoryIndex index.php order…
Clarion Z
  • 35
  • 4
1
vote
1 answer

mod_authz_host new statements for Deny directive

I was using the following in my Apache 2.1 installation: Order allow,deny Allow from all Deny from 203.XXX.YYY Deny from 10.ABC Deny from 10.CBA Deny from 10.BCA Deny from 10.ACB After updating to 2.4.7; I'm supposed to use the mod_authz_host…
hjpotter92
  • 78,589
  • 36
  • 144
  • 183
0
votes
0 answers

How does Apache 2.4 authorization container RequireAll evaluate conditions?

The documentation of the RequireAll directive says : and are used to enclose a group of authorization directives of which none must fail and at least one must succeed in order for the directive to succeed. This…
Httqm
  • 799
  • 7
  • 13
0
votes
1 answer

How to prevent access to multiple file types in htaccess

I'm trying to protect a few sitemap files from public access. The only ones that are allowed to have access are IP ranges from our lovely Google crawlers. For example - the Apache module mod_authz_host.c did the job well. Until now....
Legion
  • 90
  • 11
0
votes
0 answers

Require forward-dns not working as expected

Quick explanation: Home hobby server Some public services, some I'd like to restrict to internal only Since I discovered reverse proxies () I've been migrating everything behind subdomains of my domain, via Apache I then discovered that I could no…
Jonathan Crooke
  • 912
  • 7
  • 19
0
votes
2 answers

Access Control Apache

Just having trouble setting an access control in Apache. So I want to deny access to a specific ip address for a section in my website. So when this ip address access my site, they shouldn't be able to see the "test" section of the website. This is…
dark_illusion_909099
  • 1,067
  • 2
  • 21
  • 41