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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manjava
    New Member
    • Sep 2009
    • 132

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

    Hello
    Apache 2.2.17
    PHP 5.3.5
    windows 7
    i have this probleme Forbidden

    You don't have permission to access / on this server.
    i have on httpd.conf
    Code:
    ServerName localhost:80
    DocumentRoot c:/wamp/www/
    <Directory />
        Options FollowSymLinks
        AllowOverride All
        Order  Deny,Allow
        Deny from all
    </Directory>
    <Directory C:/wamp/www/>
    Options Indexes FollowSymLinks
    AllowOverride all
     Order Allow,Deny
    Deny from all
    Allow from 127.0.0.1
    </Directory>
    i have on my projet web on folder public the file .htaccess
    Code:
    SetEnv APPLICATION_ENV development
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
    and i have on apache_error.lo g
    Code:
    [client 127.0.0.1] C:/wamp/www/Web/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/
    [Sun Jun 19 22:17:48 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Dev, referer: http://localhost/Web/
    [Sun Jun 19 22:17:49 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Dev, referer: http://localhost/Web/
    [Sun Jun 19 22:17:50 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Dev, referer: http://localhost/Web/
    [Sun Jun 19 22:17:50 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico
    thanks for help
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    try
    Code:
    Order Allow, Deny
    Allow from all
    currently it seems you’re denying all access, so / would be forbidden.

    Comment

    • udaman
      New Member
      • Feb 2013
      • 1

      #3
      Worked!

      Originally posted by Dormilich
      try
      Code:
      Order Allow, Deny
      Allow from all
      currently it seems you’re denying all access, so / would be forbidden.
      This is a good solution. It worked for me.

      Comment

      Working...