Apache 403 Forbidden Error and Solution

by Vivek Gite on August 23, 2006 · 87 comments

I have successfully configured Apache web server for my client. But why does my clients website just say "Error 403 Forbidden"? For example when client send request http://myclient.com/something/ Apache generate a 403 error. How do I troubleshoot this problem?

Error code that start with 4xx is generated because of client browser request. A 403 error code means client browser (or person who is trying to access your site) cannot access the requested URL. It can be caused by many reason:

a) A 403 status code indicates that the client cannot access the requested resource. It means the wrong username and password were sent in the request, or that the permissions on the server do not allow what was being asked.

b) No default directory index page is present. Upload Index.html or Index.htm file. Directive DirectoryIndex defines the default index page name. Open your apache configuration file, find out default index file name, and upload the same file to directory:
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml

c) Make sure the CGI script requested have executable permissions set on files. Use chmod command to set permission:
$ chmod +x file.cgi

d) Make sure you have permission to use .htaccess file for Apache web server. If Apache has overrides disabled. you will bump back with a 403 error.

e) Make sure correct directory permissions are set on directory:

<Directory "/home/domain/www">
		Options +Indexes FollowSymLinks +ExecCGI
		AllowOverride AuthConfig FileInfo
                Order allow,deny
		Allow from all
</Directory>

f) Make sure the underlying file system permissions allow the User/Group under which Apache is running to access the necessary files. You can determine which case applies to your situation by checking the error log. In the case where file system permission are at fault, remember that not only must the directory and files in question be readable, but also all parent directories must be at least searchable by the web server in order for the content to be accessible. For example /home/httpd/theos.in/ must be searchable, enter:
# chmod +x /home/httpd/theos.in/

g) You should also check the logs for any errors:
# tail -f /path/to/apache/error.logs

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 87 comments… read them below or add one }

1 T1 quotes February 2, 2008

I had the same problem. I was doing some testing and have installed PHP 5 on a development server. I had a site installed on the server that was working correctly, complete with quite an elaborate .htaccess file handling many redirects and rules. However, after installing PHP5 it turns out any php file I tried to view just returned a 403 Forbidden error. I began to scratch my head. Searching on Google didn’t immediately bring up a solution either. However, I eventually narrowed it down to the fact that I needed to add Options +FollowSymLinks to my .htaccess file. That solved it all.

Reply

2 shankar March 31, 2008

#chmod a+x /home-dir-where-apache-installed

ex: chmod a+x /home/test

This will fix the problem

Reply

3 Andrew August 1, 2008

I am having the same problems with my Apache server, however I am running it off of Windows XP. Would my solution be the same as the steps above, can someone “dumb it down” for me?

Reply

4 S. Nilesh August 1, 2008

Andrew, which OS ?

Reply

5 Mzwa September 23, 2008

Just a quick reminder guys; mind the back-slashes on your apache config file when naming your domain and path. My Error 403 came as a result of that; but now that everything is up! I’m coooooool.

Sho!

Reply

6 http://www.customsmiledesigns.com October 20, 2008

I am an Apache/linux newbie. (Trying to learn this technology…)

I setup a Mandrake 10.1 server, and am trying to setup virtual hosting.

I created a user and a www folder. Set the www folder permission to 777.
I created a virtual server as follows:

DocumentRoot “/home/domain/www”
ServerName *.domain.com

allow from all
Options +Indexes
DirectoryIndex index.html index.htm default.htm

I added the DirctoryIndex line, but get the same error with or without that line.

If I try to browse any file including the root site, I get the following error message:

Forbidden
You don’t have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

I’m assuming that this is a permission based issue, however I have 777 permissions set, so it should work. Any help would be appreciated!

Thanks!

Reply

7 vivek October 20, 2008

Set dir options as follows and restart apache:

<Directory "/home/domain/www">
		Options +Indexes FollowSymLinks +ExecCGI
		AllowOverride AuthConfig FileInfo
		Order allow,deny
		Allow from all
</Directory>

Reply

8 hafix hma May 7, 2011

pls i want to see a gem code

Reply

9 kamel tawfik November 5, 2008

I am having the same problems with my server
please can solve my problem

Reply

10 Apache Joe November 6, 2008

I had this error on Apache on WIndows Vista… after some experimenting around I found that for some reason the doc files had been encrypted. Even though I could open/edit/save them, Apace could not. Which is strange as I made perms open to Everyone for Full Control. Anyway, once I selected All and set not to encrypt, then Apache was able to open and send them to the client.

Reply

11 chinmaya January 22, 2009

Forbidden
You don’t have permission to access /pages/index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.41 Server at depacco.com Port 80

vista ultimate sp1 usinf mizile firefox3.0.5

wht i will to slove the problem????????????????

Reply

12 jedi March 21, 2009

can anyone help me out of this problem. I couldn’t solve this problem for a week.

issue : [error] [client 127.0.0.1] File does not exist: C:/Apache2/htdocs/projectconsole

what is the solution

Reply

13 Ali Mabrook April 26, 2011

Check the file “projectconsole” exists or not??

Reply

14 MAROU March 28, 2009

i have a probleme with service http in nagios.when i want to access to look the status of my localhost ->all service are ok ,but http send me a message:403 forbiedeen

Reply

15 jonathan March 29, 2009

I’m getting the “403″ error message when i use flash and php

Reply

16 Nadia March 30, 2009

I have a problem. its been a month and at first i thought the website was down and it will be back to normal i like. 2 days.. but its still going. i don’t know what to do now. and like.. i don’t know what apache and stuff so can you like guide it down to clicks?

Forbidden
You don’t have permission to access / on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

——————————————————————————–

Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at gatheringro.ch Port 80

Help please!!

Reply

17 best April 3, 2009

In your virtual host conf file for the site, what are the values, if any, for the following directives:

VirtualHost
NameVirtualHost

They should look something like this

VirtualHost *.80
NameVirtualHost *.80

If you have a specific IP address specified in either directive, remove it and replace it with a *.

Weird power outages can also cause a broadband modem to power cycle and lease a new IP address. Becuase you have a dynamic IP address and your site stopped working spontaneously, I’m guessing that your conf file states an explicit IP address to listen on. When your IP address changed it broke the directive, causing Apache to no longer accept requests for your site.

Reply

18 absa April 30, 2009

I am using apache2.2 (on windows 2003) & I am getting 403 error which says “This website requires you to log in” please can some one suggest any workaround

Reply

19 Christopher Zimmermann May 7, 2009

I just read over the postings and adding an index file sounds easy. But what happens if your site has over 800 folders ie a very large organization. The server is showing a forbidden page even though it’s ugly can we not change that page? Or have the server point to a custom 404 page? I don’t want to go around sticking index files in with meta redirects to a 404 page or to the homepage. Suggestions please would be FANTASTIC!

Thanks.

C

Reply

20 Vivek Gite May 7, 2009

Turn on fancy indexing or something line this:

ErrorDocument 403 /noindex.html

and Upload /noindex.html with custom message.

Reply

21 Christopher Zimmermann May 7, 2009

Thanks Vivek Gite… I’m going to try that out.

Cheers

Z

Reply

22 jigz May 13, 2009

plz give me a step by step instruction, on how to solve these problem.. dnt know where cn i find those settings.. the probs is when i type cebudogs.com in my address browser, the text showed are..
(your help would be much appreciated..)
Forbidden
You don’t have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

——————————————————————————–

Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.3 mod_perl/2.0.4 Perl/v5.8.8 Server at cebudogs.com Port 80

Reply

23 indie May 14, 2009

to “best”:

your message
“Weird power outages can also cause a broadband modem to power cycle and lease a new IP address. Becuase you have a dynamic IP address and your site stopped working spontaneously, I’m guessing that your conf file states an explicit IP address to listen on. When your IP address changed it broke the directive, causing Apache to no longer accept requests for your site.”
which gave me an idea that prior to my 403 error, we had a power interruption. what i did was to power cycle the router’s and internet’s power adapter (plug/unplug) and then all was back to normal.

thanks much! \(><,)/

indie

Reply

24 Rusty May 27, 2009

I get this error when I try to access a particular program , I can go next door and use their computer and it comes through perfect, only difference are the ISP we use,

_______________________
Forbidden
You don't have permission to access /affiliate/affiliates/index.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.0.61 (Unix) mod_ssl/2.0.61 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_perl/2.0.3 Perl/v5.8.8 Server at http://www.unostart.com Port 80

As I am not computer savvy I have no idea what all that means.
Can some one please help in newbie talk

Reply

25 XFiFTeenTh015X June 5, 2009

Forbidden
You don’t have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

——————————————————————————–

Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9 Server at cris.hobo-studios.org Port 80

Reply

26 blageez June 12, 2009

I have a problem. Everytime I want to publish a post on my blogger using Windows Live Writer, it’ll say Error 403 Forbidden? why why why? can anyone help me???? please and thank youu.

Reply

27 greenfeld June 20, 2009

i have the same problem in in host way

Reply

28 some June 25, 2009

thanks my friend

Reply

29 Gee June 30, 2009

Sorry but it’s not working,

I’m using fedora 10 that I had recently installed, and i have realized that yum install scatters files all the disk. So I want build every from binary code so that i can keep my location consistent, but every time make install THIS IS THE MESSAGE I GET after the command # /.configure

[root@localhost httpd-2.2.11]# ./configure
checking for chosen layout… Apache
checking for working mkdir -p… yes
checking build system type… i686-pc-linux-gnuoldld
checking host system type… i686-pc-linux-gnuoldld
checking target system type… i686-pc-linux-gnuoldld

Configuring Apache Portable Runtime library …

checking for APR… reconfig
configuring package in srclib/apr now
checking build system type… i686-pc-linux-gnuoldld
checking host system type… i686-pc-linux-gnuoldld
checking target system type… i686-pc-linux-gnuoldld
Configuring APR library
Platform: i686-pc-linux-gnuoldld
checking for working mkdir -p… yes
APR Version: 1.3.3
checking for chosen layout… apr
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: in `/home/smarty/Download/httpd-2.2.11/srclib/apr’:
configure: error: no acceptable C compiler found in $PATH
See `config.log’ for more details.
configure failed for srclib/apr

PLEASE HELP, on top of that its the 403 ERROR

Reply

30 mcsolas July 16, 2009

I am trying to setup virtual hosts on my development machine running win xp pro, apache 2.2

Tested several variations.. nothing seems to work yet. Here is what I have in the httpd-hosts.conf file… any suggestions for the windows users out there?
NameVirtualHost *.80

DocumentRoot C:\Site1
ServerName site1.local

Reply

31 G.KarthiK July 24, 2009

This error message .plz solve this Access is forbidden to the requested page:

174.142.39.75/~kethez/tamil/chatt/tschat.php (port 80)
Please forward this error screen to 174.142.39.75′s WebMaster.

——————————————————————————–

Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9 Server at 174.142.39.75 Port 80message . help me

Reply

32 Dwight Stegall October 12, 2009

You can get this error in everyone of Google’s Products. It’s simply a corrupted cookie problem.

When you receive Google Error 403 Forbidden simply delete the Google.com cookies, restart your browser, and sign in again to get fresh cookies.

I don’t know what causes this error or how to fix it. But this is a good workaround until a fix is discovered.

Reply

33 a.nagaraju November 10, 2009

i have full errors in tagged web site.iam unable to open any friend page and iam loosing friends too.in my view it is a wasteless web site.

Reply

34 Bhargav November 14, 2009

hellow this is bhargav patel.
whenever i search any documents from google then i got this type error.so wat is solution for it.
pls send me solution.

Forbidden
Your client does not have permission to get URL /custom?hl=en&source=hp&q=ele&cx=partner-pub-7805591812337652:1aewev-5uvu&adkw=AELymgUkMdh_dMYaX7IYvSRvXbqF2DfmRoYBFjBN3qiItw5OZ8sLxbv88txH5h5OvbLXQJsJMgNe-CouED0Ylv6F2td-gzx8WHgkpK-vIVt4KvF3Bc8QpNY&cof=AH%3Aleft%3BALC%3A0000FF%3BBGC%3AFFFFFF%3BCX%3Agoogle%3BDIV%3A336699%3BFORID%3A13%3BGALT%3A008000%3BL%3Ahttp%3A%2F%2Fwww.google.com%2Fintl%2Fen%2Fimages%2Flogos%2Fcustom_search_logo_sm.gif%3BLC%3A0000FF%3BLH%3A30%3BLP%3A1%3BT%3A000000%3BVLC%3A663399%3B&oe=ISO-8859-1&ie=ISO-8859-1&safe=images&client=pub-7805591812337652&channel=3928777124 from this server. (Client IP address: 117.98.15.206)

We apologize for your inconvenience, but this request could not be processed.
Please click here to continue your search on Google.

Reply

35 Himanshu Vasani December 4, 2009

i configured the apache but give the forbidden error.
and in error log forbidden /www/docs error

Reply

36 MN February 3, 2010

I would if someone help me to resolve “Apache 403 Forbidden Error”. I was fine until yesterday and unfortunately it was encountered today and I have no knowledge what could cause it. I don’t know computers a lot and try to avoid being a computer scientist. However something might have happened because of no innocense.

Thanks.

Reply

37 KF February 5, 2010

I think it’s such a wired thing that it’s actually related to permission issue. The working solution can be found in http://ubuntuforums.org/archive/index.php/t-763605.html .
What you could do is:

$ sudo mv images Images
$ sudo mkdir images
$ sudo cp -R ./Images/* ./images/
$ sudo chmod -R 775 ./images/
$ sudo chown -R root:www-data ./images/
$ sudo rm -r ./Images

Duplicate a folder and then reset all file permissions required. Everything works FINE AGAIN!

Reply

38 Emory February 14, 2010

Thank you.
Option “e” solved my problems running WAMP with Vista. I’ve been looking for a solution for days.

Thanks again.

Reply

39 vlip February 18, 2010

I get and still gets 403 error on /var/www/piwi http://server/piwi/ ?

when i copy the inside files of /usr/share/piwi whole apache goes doen

so i ln -s the inside files *.pl and folders from /usr/share/piwi/ to /var/www/piwi/

made a good alias for it,
chmodded it multiple ways but still gets 403

piwi is an webinterface for prelude IDS

Reply

40 radeonon March 19, 2010

if you create a directory with mkdir and use a mode other than 0777 you cant access this directory using http. be carefull.

Reply

41 Anonymous April 7, 2010

my script alias pointed to folder that did not exist. that was my issue and was getting 403.
so check your paths!

ScriptAlias /cgi-bin/ “C:/DOCUME~1/davidj411/MYDOCU~1/web/www/cgi-bin/”

Reply

42 Leon April 16, 2010

Hi All,
I am running wampserver and Apache 2.2 on windows 2003.
I have set <Directory to "allow from all" and I am still getting "You don't have permission to access / on this server." error when accessing the site from locations other than the host server.

Can anyone help please!

Kind Regards

Reply

43 bankky May 16, 2010

when working with php,i use to have this error in database but on the internt,apache can not be run,apache is block with firewall,what should i do?

Reply

44 bank May 16, 2010

apache cannot be run on the system

Reply

45 say May 16, 2010

database error ,403apache,whenever am working with database,this error always appear,what should i do?

Reply

46 javier alvarez May 20, 2010

I had the same problem with a Apache 2.2 server on windows xp, but I solved it doing the following. In the httpd.conf file
1. Set the DocumentRoot to whatever directory I want
DocumentRoot “C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/MyRootDirectory”
2. Set the tag to point to the same directory ___But using the backslash!!!__

Reply

47 javier alvarez May 20, 2010

Sorry, the message has missed information due to brackets:
the tag is the Directory tag and the sample value is “C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\MyRootDirectory”. Note that here I use backslashes and in DocumentRoot I use forward slashes

Reply

48 Joe Oviedo July 2, 2010

Great article! Thank you so much!

Reply

49 Tomislav20 July 7, 2010

Thx so much for all answers. It helped me so much…

Reply

50 Pankaj Shrivastava July 21, 2010

Hi,

I am using Mercurial as repository for project using Apache 2.2. While accessing the link it shows me the error
HTTP Error 403 – Forbidden
You might not have permission to view this directory or page using the credentials you supplied.
The above error I am getting when I am using domain name to access the repository but for local it is not giving the error.
Any pointer will be helpful

Reply

51 Vipul @getexaminfo August 8, 2010

My site many times shows this error and then I go to a pro for solution.
But next time I will try it myself.

Reply

52 JD August 13, 2010

I fixed my problem by replacing

Options +Indexes FollowSymLinks +ExecCGI
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all

With:

Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

Reply

53 grinding mill September 1, 2010

Options +FollowSymLinks
RewriteEngine on
ErrorDocument 404 /404/
ErrorDocument 403 /403.html

order allow,deny
deny from 114.92.
allow from all

i use this method, but 403error is not my page.
how can i do it?

Reply

54 Olivier L September 14, 2010

Thanks a lot!!!

Olivier

Reply

55 Ronald Joshua R. Adela October 14, 2010

thanks big help.

Reply

56 Cayden Ryan December 19, 2010

I’m an EXTREME newbie to the tech world, but the homepage itself of my website works, but any time I try to get to a subdirectory it turns up this error:

Not Found

The requested URL /armor/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www. .com Port 80

I have access through ftp and wordpress to make any changes, I just need to know what changes to make, please help!

Reply

57 Vivek Gite December 19, 2010

Setup mod_rewrite for your wordpress.

Reply

58 docfish December 22, 2010

I have a strange problem.
I have only index.html in my dir and get 403 error.
When I replace it with index.php all OK

Reply

59 lilsinger201 January 8, 2011

I am a current college student and starting to use the Niihka website for classes and i am one of the few that get to test the pilot version and i somehow can not get through to the server because of this ( excuse the fact that i have never heard of this product in my entire technological life) Apache Tomcat domain. i get the same error message 403 when i am trying to download files onto my server i am using an HP with vista and i am concerned that this may be an issue when using the Niihka for the rest of the semester and need help pronto. please if you know anything about this let me know thanks!!!

Reply

60 mike January 12, 2011

Hi,
In trying to reach a website, I get the following error:
Forbidden
You don’t have permission to access /news/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I have a mobile internet and Windows 7 with Internet explorer. How can I get out of this problem?
Thank you for any help you might give me.

Reply

61 AnaB March 11, 2011

Thank you so much! This is the only answer I’ve found in my 2 hours of searching that actually helped to solve my problem

Reply

62 Ramon Fincken March 11, 2011

Thanks for the logs suggestion. Turned out that the read permissions for ” others ” were denied.

Reply

63 Mohammed March 28, 2011

Hello guys, as many of you up here, I have the same problem and one more, I don’t have a lot of experience on linux, and now, i’m trying to make website on linux but I get the (“Access forbidden!

You don’t have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.”)
I hope some 1 can help me by explaining step by step because i really suck on linux :p
thanks a lot
Error 403
localhost
Mon Mar 28 00:54:23 2011
Apache/2.2.15 (Linux/SUSE)

Reply

64 whats in name April 12, 2011

……… or maybes? the Website is under considerations and is updatings herself.
you can try later on.
example: NO BROWSER/s is helpful to help/s to fix this problem >>>>
Forbidden
You don’t have permission to access / on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Reply

65 Elise April 19, 2011

I had this issue on my local sandbox env. I figured out eventually that my home directory was set to no access for all, and I needed to change it to read only. After f****** with httpd.conf for at least an hour, I was quite relieved to have figured this out.

System Preferences -> Sharing -> File Sharing (check it), then select your home directory and fix the “Everyone” permission to “Read only”.

Reply

66 Pramod May 6, 2011

Hello Guys,
As I have some problem please help me.
Apache directory consist cgi-bin directory. As I browse the path of cgi-bin through browser I get 403 response.As a secure point of view its better to show 404.
How can I do it?
Thanks in advance..

Reply

67 kaspersky May 14, 2011

which program should I use to write the given commands !?
like:
$ chmod +x file.cgi , etc !?

Reply

68 koby May 30, 2011

It refers to unix/linux users… which you apparently not one..

Reply

69 Charles June 16, 2011

Pls can somebody help me out,I am working with my server but I dont know how it turned back 2 tell me that I forbiden from hph that 403 error forbidden additionally i am tryin 2 use error document.Pls what do that mean.And have exam today I need browse it out.Pls i beg 4 ur urgent aid

Reply

70 Nikayla July 2, 2011

Hi there..

can support for my problem?
I got error 403 after file chmod permission on my ftp site
and I cant fix this

helppp…..

Reply

71 nan July 4, 2011

Thank you so much! This is the only answer I’ve found in my 2 hours of searching that actually helped to solve my problem

Reply

72 philip July 7, 2011

Recently I often receive on my e-mail a mail from (same) person. I know this person ,(my sister in law)
The message sais “HTTP 403 Forbidden. I am sure she is not sending me any XSXX or something like that.
What can I do to get rid of that? Her e-mails are coming from her to sevreal other people.

Reply

73 alex August 1, 2011

help problema 403 after install csf firewall,
remove but problem no resolve

Reply

74 mike August 6, 2011

im still having this error. I dont understand how to fix this. Can someone help me through teamviewer?

Reply

75 chy August 10, 2011

delete the file name .htaccess
it can solve your problem (just for a while)

Reply

76 varnikhaa September 1, 2011

please help me how to login this web page.

Reply

77 afzal September 21, 2011

my web is showing forbiden error403

Reply

78 afzal September 21, 2011

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

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Reply

79 Sam Tuke October 7, 2011

SELinux is also a very likely culprit on RHEL/CentOS systems.

See: http://www.phpfreaks.com/forums/index.php?topic=243271.0

Try this command:

chcon -R -h -t httpd_sys_content_t /web/directory/

Reply

80 Tom N October 9, 2011

I found that the default security in version 2.2 and beyond does not include the localhost directory. (C:\Program Files\Apache Software Foundation\Apache2.2\htdocs) You need to add a setting allowing scripts run from this directory (This is so Stupid!)

what to do:
Version 2.2 also changed some of the default security configuration parameters. To set things up the way you’ll need them, you’ll need to add the following block to either your httpd.conf file, just above the virtual hosts, or to your httpd-vhosts.conf file:

Order Deny,Allow
Allow from all

Do this for any directory you setup using Virtual hosts as well. Just change the directory and leave everything else alone.

Reply

81 Bart November 1, 2011

thx, you made my day!

Reply

82 Eran November 8, 2011

Thanks for the tips.

Eventually what solved the problem for me was changing permission within the .htaccess file which was located in my root directory (www).
I installed Apache server on Windows XP. When I connected as localhost everything worked fine. When I tried to connect through another browser using the IP address, I got an error message
“403 Forbidden You don’t have permission to access / on this server.”
Changing the permissions within the .htaccess file from “Deny from all” to “Allow from all” did the trick.

Thanks.

Reply

83 rob Alferink November 16, 2011

hi i was successfully on website then suddenly bounced off was just lurking for several hours,the little login box would not let me log back in i tried clearing cookies no luck can you help me get reconnected tanxxxxx

Reply

84 j December 1, 2011

Thanks, very helpful i only needed to read the first couple of paragraphs to have my problem solved.

Reply

85 Dhananjay January 10, 2012

Sir, i have a problem in my cell Nokia- C5 that whenever i use to download any video .After 1 or 2 minute there occurs error code 403 forbidden and downloading fails.plz suggest me what i have to do.

Reply

86 RG January 17, 2012

Curious behaviour in apache for windows (2.2.16), without “\” ending the directory in an Alias I get a 403, added to the path and then everything’s ok…

Reply

87 ktbiz January 23, 2012

If you’ve set up the alias correctly and your permissions are okay and you’re STILL getting a forbidden error when you try to access your file, I may have the solution for you. Your operating system may be running SELinux (Security Enhanced Linux) which could limit your permissions to files beyond the normal linux protection mechanisms. To test, run the command “setenforce 0″ to set SELinux to permissive mode, then try again. This fixed a problem for me that I had been struggling with for quite a while.

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 12 + 10 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the simple math so we know that you are a human and not a script.




Previous post:

Next post: