Page 1 of 1

HINT 1.8.1 VirtualHost: access denied- Error 403

PostPosted: 14. October 2012 19:50
by WilliL
from http://community.apachefriends.org/f/viewtopic.php?f=4&t=51701
something changed in httpd.conf XAMPP 1.8.1
If you copy your working "httpd-vhosts.conf" from 1.8.0 to your 1.8.1 installion, may be you'll get the error 403 - access denied.

httpd.conf (XAMPP 1.8.1) line 201
Code: Select all
<Directory />
    AllowOverride none
   Require all denied
</Directory>


httpd.conf (XAMPP 1.8.0) line 201
Code: Select all
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>


After replacing the 1.8.1 <Directory> by the code of 1.8.0 it works fine for me.

Re: HINT 1.8.1 VirtualHost: access denied- Error 403

PostPosted: 14. October 2012 21:28
by Altrea
Hi,

Require all denied
is the new style for

Order deny,allow
Deny from all


like described here: http://httpd.apache.org/docs/2.4/upgrad ... l#run-time

thats why i am not happy with this fix (and i haven't tested it yet).
Maybe we can find a better solution.

best wishes,
Altrea

Re: HINT 1.8.1 VirtualHost: access denied- Error 403

PostPosted: 14. October 2012 21:56
by Altrea
Okay, i made some tests:

You can't mix the old style for access control with the new ones.
My recommandation would be to use the new style everywhere instead the old ones.

Basic examples:
Code: Select all
#old style
Order deny,allow
Deny from all

#new style
Require all denied


Code: Select all
#old style
Order allow,deny
Allow from all

#new style
Require all granted


best wishes,
Altrea

Re: HINT 1.8.1 VirtualHost: access denied- Error 403

PostPosted: 19. June 2013 21:30
by kevin988
Altrea wrote:Hi,

Require all denied
is the new style for

Order deny,allow
Deny from all


like described here: http://kostenloshandyorten.de

thats why i am not happy with this fix (and i haven't tested it yet).
Maybe we can find a better solution.

best wishes,
Altrea


The solution may work. Why not using it before finding a better option.

Re: HINT 1.8.1 VirtualHost: access denied- Error 403

PostPosted: 19. June 2013 21:38
by Altrea
On your own system, use whatever works for you.
But generally speaking this is not a clean solution.

the old access syntax may not work forever on live servers, because now it is not in the Apache core any more.
It is capsuled in a compatibility module which may not be activated everywhere you need it.

So my recommandation is to use the new syntax everywhere you are using Apache 2.4 to get familar with it.