Questions tagged [mod-authz-host]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
26 votes
3 answers
115k views

Apache httpd: How can I Deny from all, Allow from subnet, but Deny from IP within that subnet?

I am running CentOS 5.5 with the stock Apache httpd-2.2.3. I have enabled mod_status at the Location /server-status. I would like to allow access to this single Location in the following way: Deny ...
Stefan Lasiewski's user avatar
14 votes
3 answers
35k views

Apache, use X-Forwarded-For for allow

How can use X-Forwarded-For headers(my proxy ip 10.1.1.x) to allow HTTP query?
bindbn's user avatar
  • 5,281
4 votes
2 answers
5k views

Can you use wildcards in Subversion's Path Based Authorization?

Subversion info: Collabnet Subversion Edge 3.2.2 SVN Version: 1.8.0 Apache HTTP Server 2.4.4 Using mod_authz_svn, no ldap What I'm trying to do is allocate access of a Subversion project to all ...
codewario's user avatar
  • 558
3 votes
1 answer
33k views

apache2.4 virtual host blocking access with authz_core log, even though authz not configured

So I'm getting 403: Forbidden errors on one of my apache2.4 virtualhosts. What's interesting, is that /var/log/apache2/error.log reports: authz_core:error] [pid 4878:tid 140394394269440] [client 10....
1n5aN1aC's user avatar
  • 145
3 votes
2 answers
540 views

htaccess - Allow viewing of index.html via www.example.com/foo instead of www.example.com/foo/index.html

So I have a hypothetical folder on my website protected by Deny from all on my .htaccess file. I have coded an exception as below: <files index.html> order allow,deny Allow from all </files&...
hjk321's user avatar
  • 33
3 votes
2 answers
1k views

From SVN to GIT: Something similar to authz?

We currently have an SVN repository setup and want to switch over to GIT, but we're currently not sure what exact GIT setup will work for us. We're currently using SVN (w/ Authz) + Apache (w/ WebDAV &...
Greeny's user avatar
  • 41
2 votes
1 answer
14k views

Apache 2.4: Allow access to directory only for ip address range

I want allow access to /htdocs/reserved/ directory only for ip addresses from 192.168.1.193 to 192.168.1.254 (.193 --> .254). I have written this code in httpd.conf: <Directory /htdocs/reserved/&...
Simone Nigro's user avatar
1 vote
1 answer
219 views

Require local Apache directive not working on AWS EC2 instance

I have an Apache 2.4 VirtualHost on an AWS EC2 instance with the following config: <Directory /srv/www/example.org> Require ip [REDACTED] # Office IP Require local </Directory> ...
Andy's user avatar
  • 141
1 vote
1 answer
2k views

Apache restrict domain [duplicate]

I would like to configure Apache (2.2)to restrict what domains users can access e.g. if apache FQDN is myapache.myfunnydomain.com then apache will only allow requests to resources in .myfunnydomain....
user1843591's user avatar
0 votes
2 answers
470 views

Apache, mod_authz_host, ineffective 'Allow from' clause

I am trying to restrict access to a part of my website to only a specific machine within the local network using mod_authz_host. https://httpd.apache.org/docs/2.4/mod/mod_authz_host.html My config ...
Martin Vlk's user avatar
0 votes
1 answer
2k views

Basic Auth apache 2.2 bypass IP

how can set the basic auth of apache 2.2 to bypass IP? I have follow this wiki http://wiki.apache.org/httpd/BypassAuthenticationOrAuthorizationRequirements , but ask always a password, also to IP ...
stecog's user avatar
  • 995
0 votes
1 answer
392 views

Apache Require IP directive not working

I have the following in my apache config file: Define THUMBS_ROOT "//mysmbserver/website/thumbs" Alias "/thumbs" "//mysmbserver/website/thumbs" <Directory {THUMBS_ROOT}...
Brad's user avatar
  • 619
0 votes
2 answers
2k views

Apache 2.4 - How to restrict traffic (by IP address) to all requests except the base path?

I have a collection of debugging scripts in /var/www that display useful information that helps with investigating issues on the server, however that same information is potentially sensitive, so I do ...
tommarshall's user avatar
0 votes
1 answer
199 views

Network Related Apache 2.4 403 Authz Error AH01630

I've never seen this style of behavior before. If I access this site on most networks it works. However if I am on-site of the client I cannot pull up the site. TWC Home, works fine. ATT Cell Data, ...
Ciordia9's user avatar
0 votes
1 answer
284 views

Apache httpd: How can I Deny from all, Allow from subnet without the ip address range being known before hand?

I am running REHL 6.7 with the stock Apache httpd-2.2. I have enabled mod_status at the Location /server-status. I would like to allow access to this single Location in the following way: Deny from ...
jgr208's user avatar
  • 111
0 votes
1 answer
51 views

Apache - protect particular http patterns

I want to restrict certain domains from accessing services on my app server. For example; mydomain.com/sensitiveInformationServlet I want to create a filter on my Apache server which will match all ...
cdugga's user avatar
  • 105