403 forbidden by Apache
Einstein
![]()
Joined: 2003-10-13
Posts: 105 |
![]() |
I has some problems with my new Gallery2. May hosting companies have some restrictions how many PHP files can be requested from server. G2 use image firewall that asks for pictures through PHP scripts. When thumbnails then are drawn on a page a few may be missing. And continue clicking gives 403 forbidden by Apache. What configurations on Apache may cause this? Soon around 6000 photos ... sorry it's in swedish. http://foton.kimslotte.net/ |
|
Einstein
![]()
Joined: 2003-10-13
Posts: 105 |
![]() |
I think a phpinfo file is necessary to solve this problem: I did put the same questions to my hosting company ... they have not yet come up with a solution to the problem. |
|
Einstein
![]()
Joined: 2003-10-13
Posts: 105 |
![]() |
Strange, this looks like a local problem. I could not reproduce it on my other computer. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
Weird .. that's got to be something that your host is doing. Maybe mod_throttle? |
|
Einstein
![]()
Joined: 2003-10-13
Posts: 105 |
![]() |
I myself think my host have set their firewall settings a little to tight to prevent DOS attacks. |
|
Einstein
![]()
Joined: 2003-10-13
Posts: 105 |
![]() |
bharat wrote:
Weird .. that's got to be something that your host is doing. Maybe mod_throttle? My hosting company didn't have easy to find out what's the problem ... but they ar now the right track. The thing that is cuasing this is mod_security. |
|
sdenike
Joined: 2004-03-24
Posts: 13 |
![]() |
I belive that mod_dosevasive is the problem with your account, I am having the same issue. |
|
sdenike
Joined: 2004-03-24
Posts: 13 |
![]() |
Well I fixed the problem, if you have mod_dosevasive running on your server (most shared hosting accounts do) then you need to have this added to your site in the VirtualHost section of the apache config. With the settings I have here everything seems to work well and I have included my setup as well. FIX:: Quote:
# Mod for Gallery2 so as it doesn't error out SETUP:: Also.... I am running Gallery2 Beta 2 intigrated with Wordpress 1.5.1.1, running album views with 3x3 colums/rows. All this seems to work fine with mine. You may want to tweak the settings to your likings as the numbers are pretty high. |
|
Einstein
![]()
Joined: 2003-10-13
Posts: 105 |
![]() |
Thank you for the info ... I will try to "wake up" my hosting company about the issue again. |
|
deeyay
Joined: 2006-04-06
Posts: 2 |
![]() |
I'm having the same issue with my hosting company. I have just contacted them and I'm eager to see if they are willing to fix this problem. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
I had a friend that has a similar issue except he was unable to get access to any file in the gallery2/lib direcotry. He received a 406 error code. Quote:
An appropriate representation of the requested resource /gallery/lib/yui/yahoo-min.js could not be found on this server. a fix was to create a .htaccess file with this as the contents: Just posting this because the FAQ points here as well as search results. Dave |
|
andrabr
Joined: 2007-09-05
Posts: 18 |
![]() |
Brilliant! SecFilterEngine Off is also a solution for those who see no action in plugin installation screen (just green lines) - there is a 403 happening in the background. Thanks, man! |
|