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://www.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: 584
Joined: 08. January 2010 10:54
XAMPP Version: 1.8.0
Operating System: Win XP Home SP3

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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
free software according to purpose of usage
XAMPP 1.8 for local development/testing only
Zend Server 6 (free) for production environments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 4496
Joined: 17. August 2009 13:05
XAMPP Version: 1.8.0
Operating System: W7Ux64

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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
free software according to purpose of usage
XAMPP 1.8 for local development/testing only
Zend Server 6 (free) for production environments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 4496
Joined: 17. August 2009 13:05
XAMPP Version: 1.8.0
Operating System: W7Ux64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 9 guests