468,505 Members | 1,836 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

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

132 100+
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
Expand|Select|Wrap|Line Numbers
  1. ServerName localhost:80
  2. DocumentRoot c:/wamp/www/
  3. <Directory />
  4.     Options FollowSymLinks
  5.     AllowOverride All
  6.     Order  Deny,Allow
  7.     Deny from all
  8. </Directory>
  9. <Directory C:/wamp/www/>
  10. Options Indexes FollowSymLinks
  11. AllowOverride all
  12.  Order Allow,Deny
  13. Deny from all
  14. Allow from 127.0.0.1
  15. </Directory>
  16.  
i have on my projet web on folder public the file .htaccess
Expand|Select|Wrap|Line Numbers
  1. SetEnv APPLICATION_ENV development
  2. RewriteEngine On
  3. RewriteCond %{REQUEST_FILENAME} -s [OR]
  4. RewriteCond %{REQUEST_FILENAME} -l [OR]
  5. RewriteCond %{REQUEST_FILENAME} -d
  6. RewriteRule ^.*$ - [NC,L]
  7. RewriteRule ^.*$ index.php [NC,L]
and i have on apache_error.log
Expand|Select|Wrap|Line Numbers
  1. [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/
  2. [Sun Jun 19 22:17:48 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Dev, referer: http://localhost/Web/
  3. [Sun Jun 19 22:17:49 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Dev, referer: http://localhost/Web/
  4. [Sun Jun 19 22:17:50 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Dev, referer: http://localhost/Web/
  5. [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
Jun 21 '11 #1
2 30651
Dormilich
8,651 Expert Mod 8TB
try
Expand|Select|Wrap|Line Numbers
  1. Order Allow, Deny
  2. Allow from all
currently it seems you’re denying all access, so / would be forbidden.
Jul 9 '11 #2
udaman
1
@Dormilich
This is a good solution. It worked for me.
Feb 12 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by A.A. Fussy | last post: by
2 posts views Thread by Jim Pettway | last post: by
2 posts views Thread by Steve Jorgensen | last post: by
2 posts views Thread by Lior Amar | last post: by
4 posts views Thread by Don Parker | last post: by
reply views Thread by NPC403 | last post: by
3 posts views Thread by gieforce | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.