HINT 1.8.1 VirtualHost: access denied- Error 403

Problems with the Windows version of XAMPP, questions, comments, and anything related.

HINT 1.8.1 VirtualHost: access denied- Error 403

Postby WilliL » 14. October 2012 19:50

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.
Willi
WilliL
 
Posts: 628
Joined: 08. January 2010 10:54
XAMPP Version: 5.5.19
Operating System: Win7Home Prem 64 SP1

Re: HINT 1.8.1 VirtualHost: access denied- Error 403

Postby Altrea » 14. October 2012 21:28

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6946
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: Windows 10 Pro x64

Re: HINT 1.8.1 VirtualHost: access denied- Error 403

Postby Altrea » 14. October 2012 21:56

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6946
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: Windows 10 Pro x64

Re: HINT 1.8.1 VirtualHost: access denied- Error 403

Postby kevin988 » 19. June 2013 21:30

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.
kevin988
 
Posts: 1
Joined: 19. June 2013 21:18
XAMPP Version: 5.6.3
Operating System: Window 7

Re: HINT 1.8.1 VirtualHost: access denied- Error 403

Postby Altrea » 19. June 2013 21:38

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6946
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 31 guests