You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jan Christoph Schatteburg <sc...@rhrk.uni-kl.de> on 2014/07/04 13:00:34 UTC

[users@httpd] You don't have permission to access / on this server.

Hi,

i'm quite new to Apache and Servers in general and on my 
Wamp Server on a Windows 7 System using Apache 2.4.4 i get 
the following Error when trying to access localhost (from 
the Server machine of course ;)):

--------------------------
Forbidden

You don't have permission to access / on this server.
--------------------------

My httpd.conf has the following entries:

--------------------------
<Directory />
     AllowOverride none
	Order Deny,Allow
	Allow from all
</Directory>

<Directory "c:/wamp/www">
     Options Indexes FollowSymLinks
     AllowOverride None
     Order Allow,Deny
     Allow from all
</Directory>
--------------------------

I tried several different wordings like "Require all 
granted" instead of "Order Allow,Deny Allow from all" but 
nothing worked :(

I would be happy if somebody could help me.

Thanks,
Jan

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


Re: [users@httpd] You don't have permission to access / on this server.

Posted by "Mackey, Harold A." <ma...@musc.edu>.
Order Allow/Deny is reversed on the WAMP settings. Is that correct?
Also, This usually means the folder you are hosting the WAMP out of does
not have the correct rights to serve up Apache.




Thanks,

Harold Mackey
Ofc (843) 876-5926
Pgr 11310


Have a super-sparkly day.




On 7/4/14, 7:00 AM, "Jan Christoph Schatteburg" <sc...@rhrk.uni-kl.de>
wrote:

>Hi,
>
>i'm quite new to Apache and Servers in general and on my
>Wamp Server on a Windows 7 System using Apache 2.4.4 i get
>the following Error when trying to access localhost (from
>the Server machine of course ;)):
>
>--------------------------
>Forbidden
>
>You don't have permission to access / on this server.
>--------------------------
>
>My httpd.conf has the following entries:
>
>--------------------------
><Directory />
>     AllowOverride none
>	Order Deny,Allow
>	Allow from all
></Directory>
>
><Directory "c:/wamp/www">
>     Options Indexes FollowSymLinks
>     AllowOverride None
>     Order Allow,Deny
>     Allow from all
></Directory>
>--------------------------
>
>I tried several different wordings like "Require all
>granted" instead of "Order Allow,Deny Allow from all" but
>nothing worked :(
>
>I would be happy if somebody could help me.
>
>Thanks,
>Jan
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>


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


Re: [users@httpd] You don't have permission to access / on this server.

Posted by Jeff Trawick <tr...@gmail.com>.
On Fri, Jul 18, 2014 at 7:57 PM, David Favor <da...@davidfavor.com> wrote:

> Jan Christoph Schatteburg wrote:
>
>> Hi,
>>
>> i'm quite new to Apache and Servers in general and on my Wamp Server on a
>> Windows 7 System using Apache 2.4.4 i get the following Error when trying
>> to access localhost (from the Server machine of course ;)):
>>
>> --------------------------
>> Forbidden
>>
>> You don't have permission to access / on this server.
>> --------------------------
>>
>> My httpd.conf has the following entries:
>>
>> --------------------------
>> <Directory />
>>     AllowOverride none
>>     Order Deny,Allow
>>     Allow from all
>> </Directory>
>>
>> <Directory "c:/wamp/www">
>>     Options Indexes FollowSymLinks
>>     AllowOverride None
>>     Order Allow,Deny
>>     Allow from all
>> </Directory>
>> --------------------------
>>
>> I tried several different wordings like "Require all granted" instead of
>> "Order Allow,Deny Allow from all" but nothing worked :(
>>
>> I would be happy if somebody could help me.
>>
>> Thanks,
>> Jan
>>
>
> Try changing...
>
>     Order Deny,Allow
>     Allow from all
>
> to...
>
>     Require all granted
>
> It appears you're trying to use Apache-2.2.x syntax with an Apache-2.4.x
> install.
>
> Details here...
>
>     http://httpd.apache.org/docs/trunk/upgrading.html
>     Run-Time Configuration Changes
>

httpd initializes, so mod_access_compat is loaded, but converting to
Require is reasonable.  The default setting should be

<Directory />
    AllowOverride none
    Require all denied
</Directory>

The document root setting should be

<Directory "c:/wamp/www">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>


But this itself probably won't fix anything.  What is written to the error
log at the time of the failed request?  If nothing, change LogLevel to
trace8 temporarily.


-- 
Born in Roswell... married an alien...
http://emptyhammock.com/
http://edjective.org/

Re: [users@httpd] You don't have permission to access / on this server.

Posted by David Favor <da...@davidfavor.com>.
Jan Christoph Schatteburg wrote:
> Hi,
> 
> i'm quite new to Apache and Servers in general and on my Wamp Server on 
> a Windows 7 System using Apache 2.4.4 i get the following Error when 
> trying to access localhost (from the Server machine of course ;)):
> 
> --------------------------
> Forbidden
> 
> You don't have permission to access / on this server.
> --------------------------
> 
> My httpd.conf has the following entries:
> 
> --------------------------
> <Directory />
>     AllowOverride none
>     Order Deny,Allow
>     Allow from all
> </Directory>
> 
> <Directory "c:/wamp/www">
>     Options Indexes FollowSymLinks
>     AllowOverride None
>     Order Allow,Deny
>     Allow from all
> </Directory>
> --------------------------
> 
> I tried several different wordings like "Require all granted" instead of 
> "Order Allow,Deny Allow from all" but nothing worked :(
> 
> I would be happy if somebody could help me.
> 
> Thanks,
> Jan

Try changing...

     Order Deny,Allow
     Allow from all

to...

     Require all granted

It appears you're trying to use Apache-2.2.x syntax with an Apache-2.4.x install.

Details here...

     http://httpd.apache.org/docs/trunk/upgrading.html
     Run-Time Configuration Changes

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


Re: [users@httpd] You don't have permission to access / on this server.

Posted by Eric Covener <co...@gmail.com>.
On Fri, Jul 4, 2014 at 7:00 AM, Jan Christoph Schatteburg
<sc...@rhrk.uni-kl.de> wrote:
> You don't have permission to access / on this server.

Step 1 is to read the error log.

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


Re: [users@httpd] You don't have permission to access / on this server.

Posted by Eric Covener <co...@gmail.com>.
On Mon, Jul 7, 2014 at 5:16 AM, Jan Christoph Schatteburg
<sc...@rhrk.uni-kl.de> wrote:
> [authz_core:error] [pid 1992:tid 1508] [client 127.0.0.1:50312] AH01630:
> client denied by server configuration: C:/wamp/www/
> [authz_core:error] [pid 1992:tid 1508] [client 127.0.0.1:50312] AH01630:
> client denied by server configuration: C:/wamp/www/favicon.ico
> [authz_core:error] [pid 1992:tid 1508] [client 127.0.0.1:50312] AH01630:
> client denied by server configuration: C:/wamp/www/favicon.ico
>
> I don't know what new information i should get out of that...

It confirms the mapped directory and also says it's not configuration,
not filesystem permissions.

Maybe you edited httpd.conf as non-administrator and your <Directory
"c:/wamp/www"> isn't really there. This is a vista+ feature of
Windows.

-- 
Eric Covener
covener@gmail.com

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


Re: [users@httpd] You don't have permission to access / on this server.

Posted by Jan Christoph Schatteburg <sc...@rhrk.uni-kl.de>.
Thanks for all the answers. I reply to them in one Email 
instead of three:

------------------------

>Mackey, Harold A.:
>Order Allow/Deny is reversed on the WAMP settings. Is that correct?
>Also, This usually means the folder you are hosting the WAMP out of does
>not have the correct rights to serve up Apache.

Didn't see that, thank you. Changed it to Deny,Allow in 
the <Directory />.

------------------------

>Eric Covener:
>Step 1 is to read the error log.

The error log states:

[authz_core:error] [pid 1992:tid 1508] [client 
127.0.0.1:50312] AH01630: client denied by server 
configuration: C:/wamp/www/
[authz_core:error] [pid 1992:tid 1508] [client 
127.0.0.1:50312] AH01630: client denied by server 
configuration: C:/wamp/www/favicon.ico
[authz_core:error] [pid 1992:tid 1508] [client 
127.0.0.1:50312] AH01630: client denied by server 
configuration: C:/wamp/www/favicon.ico

I don't know what new information i should get out of 
that...

-------------------------

On Fri, 04 Jul 2014 14:28:41 +0200
  Oscar Knorn <os...@uni-duisburg-essen.de> wrote:
> Please provide foll httpd.conf.
> 
> Please provide a list of active modules.
> 
> first read this information on new 'Allow' syntax of 2.4 
>:
> http://httpd.apache.org/docs/2.4/mod/mod_access_compat.html#allow
> 
> read this information on new 'Order' syntax of 2.4 :
> http://httpd.apache.org/docs/2.4/mod/mod_access_compat.html#order
> 
> read this information on new 'AllowOverride' syntax of 
>2.4 :
> http://httpd.apache.org/docs/2.4/mod/core.html#allowoverride
> 
> read this information on new 'Require' syntax of 2.4 :
> http://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#require
> 
> Cheers, Oscar

The active modules are (shall i really post the whole 
httpd.conf? It's huge...):
mod_access_compat.so
mod_actions.so
mod_alias.so
mod_allowmethods.so
mod_asis.so
mod_auth_basic.so
mod_authn_core.so
mod_authn_file.so
mod_authz_core.so
mod_authz_groupfile.so
mod_authz_host.so
mod_authz_user.so
mod_autoindex.so
mod_cgi.so
mod_dir.so
mod_env.so
mod_include.so
mod_isapi.so
mod_log_config.so
mod_mime.so
mod_negotiation.so
mod_setenvif.so
php5_module "c:/wamp/bin/php/php5.4.12/php5apache2_4.dll"

Thanks for providing the syntax links, but this give me 
any new information :(

Greetings,
Jan

> Am 04.07.2014 13:00, schrieb Jan Christoph Schatteburg:
>> Hi,
>>
>> i'm quite new to Apache and Servers in general and on my 
>>Wamp Server
>> on a Windows 7 System using Apache 2.4.4 i get the 
>>following Error
>> when trying to access localhost (from the Server machine 
>>of course ;)):
>>
>> --------------------------
>> Forbidden
>>
>> You don't have permission to access / on this server.
>> --------------------------
>>
>> My httpd.conf has the following entries:
>>
>> --------------------------
>> <Directory />
>>     AllowOverride none
>>     Order Deny,Allow
>>     Allow from all
>> </Directory>
>>
>> <Directory "c:/wamp/www">
>>     Options Indexes FollowSymLinks
>>     AllowOverride None
>>     Order Allow,Deny
>>     Allow from all
>> </Directory>
>> --------------------------
>>
>> I tried several different wordings like "Require all 
>>granted" instead
>> of "Order Allow,Deny Allow from all" but nothing worked 
>>:(
>>
>> I would be happy if somebody could help me.
>>
>> Thanks,
>> Jan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 
>>users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: 
>>users-help@httpd.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
>users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: 
>users-help@httpd.apache.org
> 


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


Re: [users@httpd] You don't have permission to access / on this server.

Posted by Oscar Knorn <os...@uni-duisburg-essen.de>.
Please provide foll httpd.conf.

Please provide a list of active modules.

first read this information on new 'Allow' syntax of 2.4 :
http://httpd.apache.org/docs/2.4/mod/mod_access_compat.html#allow

read this information on new 'Order' syntax of 2.4 :
http://httpd.apache.org/docs/2.4/mod/mod_access_compat.html#order

read this information on new 'AllowOverride' syntax of 2.4 :
http://httpd.apache.org/docs/2.4/mod/core.html#allowoverride

read this information on new 'Require' syntax of 2.4 :
http://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#require

Cheers, Oscar


Am 04.07.2014 13:00, schrieb Jan Christoph Schatteburg:
> Hi,
>
> i'm quite new to Apache and Servers in general and on my Wamp Server
> on a Windows 7 System using Apache 2.4.4 i get the following Error
> when trying to access localhost (from the Server machine of course ;)):
>
> --------------------------
> Forbidden
>
> You don't have permission to access / on this server.
> --------------------------
>
> My httpd.conf has the following entries:
>
> --------------------------
> <Directory />
>     AllowOverride none
>     Order Deny,Allow
>     Allow from all
> </Directory>
>
> <Directory "c:/wamp/www">
>     Options Indexes FollowSymLinks
>     AllowOverride None
>     Order Allow,Deny
>     Allow from all
> </Directory>
> --------------------------
>
> I tried several different wordings like "Require all granted" instead
> of "Order Allow,Deny Allow from all" but nothing worked :(
>
> I would be happy if somebody could help me.
>
> Thanks,
> Jan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


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