httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sophoklis Goumas <olspookishma...@gmail.com>
Subject [users@httpd] Configuring mod_authz_host's Redirect and Directory directives
Date Wed, 02 Oct 2013 00:42:37 GMT
Hello everyone and a special hello to this list's regular.

I'm trying to figure out why I can't access some directories over my
Apache 2.4.6 web server.

There are two machines, the web server which is also the local machine,
thus matching both 127.0.0.1 and 192.168.1.101 in my network and my
Android mobile phone which had 192.168.1.126 when the excerpts that
follow were taken.

## excerpt from /etc/apache2/conf-available/security.conf
<Directory /foo>
    Require local
</Directory>

<Directory /moo>
    Require ip 192.168.1.126
</Directory>

## excerpt from /var/log/apache2/access.log
127.0.0.1 - - [02/Oct/2013:02:07:55 +0300] "GET /foo HTTP/1.1" 200
3633 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130810
Firefox/17.0 Iceweasel/17.0.8"
127.0.0.1 - - [02/Oct/2013:02:07:56 +0300] "GET /moo HTTP/1.1" 403 503
"-" "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130810
Firefox/17.0 Iceweasel/17.0.8"
192.168.1.126 - - [02/Oct/2013:02:11:15 +0300] "GET /foo HTTP/1.1" 403
506 "-" "Mozilla/5.0 (Linux; U; Android 4.0.4; en-gb; GT-S5301
Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0
Mobile Safari/534.30"
192.168.1.126 - - [02/Oct/2013:02:11:23 +0300] "GET /moo HTTP/1.1" 403
506 "-" "Mozilla/5.0 (Linux; U; Android 4.0.4; en-gb; GT-S5301
Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0
Mobile Safari/534.30"

## excerpt from /var/log/apache2/error.log
[Wed Oct 02 02:07:56.110548 2013] [authz_core:error] [pid 32177]
[client 127.0.0.1:60877] AH01630: client denied by server
configuration: /foo
[Wed Oct 02 02:11:15.454957 2013] [access_compat:error] [pid 32180]
[client 192.168.1.126:58987] AH01797: client denied by server
configuration: /foo
[Wed Oct 02 02:11:23.116780 2013] [authz_core:error] [pid 32181]
[client 192.168.1.126:58986] AH01630: client denied by server
configuration: /moo

These excerpts can be also found (at least for now) here:
http://pastie.org/pastes/8371021/text

Could you help figure out what am I missing?

Thanks in advance,
Sophoklis

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message