EntropySink

Nothing & Everything => Open Discussion => Topic started by: hans on February 25, 2008, 05:49:00 PM

Title: 406 Error Reproducible
Post by: hans on February 25, 2008, 05:49:00 PM
For me at least. I've been getting that stupid 406 error the first time I go to ES for the day (well browser session rather).

Firefox on XP
Step 1:
Close all open browsers
Step 2:
Open new browser and go to http://entropysink.com/forums
Step 3:
See 406 message

Fixed by adding www to domain
http://www.entropysink.com/forums causes no problems
Title: Re: 406 Error Reproducible
Post by: jkim on February 25, 2008, 06:02:25 PM
same.
Quote
Not Acceptable
An appropriate representation of the requested resource /forums/index.php could not be found on this server.

Apache/1.3.39 Server at www.entropysink.com Port 80
Title: Re: 406 Error Reproducible
Post by: micah on February 26, 2008, 06:43:58 AM
1
Title: Re: 406 Error Reproducible
Post by: Mike on February 26, 2008, 08:31:59 AM
Ober, is this host stupid enough to run mod_security?  Quick look on the SMF forum seems to be pointing to that.
Title: Re: 406 Error Reproducible
Post by: ober on February 26, 2008, 10:43:13 AM
I'm talking to the host about it.  Sorry if anyone was kept out for the past 15 minutes or so... I threw in a redirect that totally didn't fucking work.

And Mike, why are you so against mod_security?  I had another host complain about SMF and mod_security.
Title: Re: 406 Error Reproducible
Post by: Mike on February 26, 2008, 11:02:57 AM
Because it is a giant POS that keeps scripts that aren't stupid from working properly.
Title: Re: 406 Error Reproducible
Post by: ober on February 26, 2008, 12:06:40 PM
They turned it off... please let me know if someone is getting this error still.
Title: Re: 406 Error Reproducible
Post by: Mike on February 26, 2008, 12:27:07 PM
The redirect posted in the first message worked.  I think I see what the problem was.

SMF does a check to see if you went to http://somesite.blah/ instead of http://www.somesite.blah/ and provided no action is happening it will redirect to http://www.somesite.blah/.  Now since you just opened the browser the PHP session hasn't been created yet so you get a URL like: http://www.entropysink.com/forums/index.php?PHPSESSID=2f973baf041e53d40ab42de889736c58;www which causes mod_security to choke.  But when you try again you have a session id and SMF is now surpressing the PHPSESSID in the url and mod_security no longer chokes.
Title: Re: 406 Error Reproducible
Post by: ober on February 26, 2008, 01:31:32 PM
Eh... if I should turn it back on, let me know.