Hi,
I also noticed an Apache behavior that seems odd!
And despite all the Apache documentation, I do not understand such behavior.
If I declare a VirtualHost like this:
<VirtualHost *:80>
ServerName techaero
DocumentRoot j:/wamp/www/techaero
<Directory "j:/wamp/www/techaero/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride all
<RequireAny>
Require local
Require ip 192.168.0
</RequireAny>
</Directory>
</VirtualHost>
And if I try to access this VirtualHost from a post on the network, in this case, a Smartphone with local IP 192.168.0.15 on WiFi, I get an access ban:
Forbidden
You don't have permission to access /techaero/index.php on this server
With in the Apache access.log
192.168.0.15 - - [29/Nov/2016:15:32:44 +0100] "GET /techaero/index.php HTTP/1.1" 403 -
and in the apache_error.log
[Tue Nov 29 15:32:44.925685 2016] [authz_core:error] [pid 6692:tid 924] [client 192.168.0.15:49385] AH01630: client denied by server configuration: J:/wamp/www/techaero/index.php, referer: [
192.168.0.10]
But if I declare the VirtualHost like this:
<VirtualHost *:80>
ServerName techaero
DocumentRoot j:/wamp/www/techaero
</VirtualHost>
<Directory "j:/wamp/www/techaero/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride all
<RequireAny>
Require local
Require ip 192.168.0
</RequireAny>
</Directory>
That is, with the <Directory ....> </Directory> structure outside the VirtualHost structure.
There is no ban and everything works perfectly.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons