Jump to content

[SOLVED] You don't have permission to access /index.html on this server.


cirene

Recommended Posts

I installed wamp, the latest version.

 

I went into httpd.confg and changed the document root to my projects directory...

DocumentRoot "f:/work-related/websites/"

 

I have an index.html file in this directory.

 

I restart all services.  When I goto http://localhost/index.html I get...

403 Forbidden

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

 

Any idea what I'm doing wrong?  Thanks!

Thanks for your response.  My wampserver.conf file is simply this...

 

<?php

$apacheConf['apacheExeDir'] = 'bin';
$apacheConf['apacheConfDir'] = 'conf';
$apacheConf['apacheExeFile'] = 'httpd.exe';
$apacheConf['apacheConfFile'] = 'httpd.conf';
$apacheConf['apacheServiceInstallParams'] = '-n wampapache -k install';
$apacheConf['apacheServiceRemoveParams'] = '-n wampapache -k uninstall';

?>

 

It must be something else. 

 

I did notice some sections like this in my httpd.confg...

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

 

Am I close?  Any ideas?  :)

Precisely.

 

<Directory />

    Options FollowSymLinks

    AllowOverride All

    Order allow, deny

    Allow from all

</Directory>

 

I changed the access and AllowOverride so you can use .htaccess files too.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.