Author Topic: 406 Error Reproducible  (Read 1824 times)

hans

  • Guitar Addict
  • Jackass In Charge
  • Posts: 3523
  • Karma: +46/-18
406 Error Reproducible
« 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
This signature intentionally left blank.

jkim

  • Jackass In Charge
  • Posts: 3290
  • Karma: +106/-12
Re: 406 Error Reproducible
« Reply #1 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

micah

  • A real person, on the Internet.
  • Ass Wipe
  • Posts: 6915
  • Karma: +58/-55
  • Truth cannot contradict truth.
    • micahj.com
Re: 406 Error Reproducible
« Reply #2 on: February 26, 2008, 06:43:58 AM »
1
"I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.  I use it to look at pictures of cats and get in arguments with strangers."

Mike

  • Jackass In Charge
  • Posts: 11248
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: 406 Error Reproducible
« Reply #3 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.

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14305
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: 406 Error Reproducible
« Reply #4 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.

Mike

  • Jackass In Charge
  • Posts: 11248
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: 406 Error Reproducible
« Reply #5 on: February 26, 2008, 11:02:57 AM »
Because it is a giant POS that keeps scripts that aren't stupid from working properly.

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14305
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: 406 Error Reproducible
« Reply #6 on: February 26, 2008, 12:06:40 PM »
They turned it off... please let me know if someone is getting this error still.

Mike

  • Jackass In Charge
  • Posts: 11248
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: 406 Error Reproducible
« Reply #7 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.

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14305
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: 406 Error Reproducible
« Reply #8 on: February 26, 2008, 01:31:32 PM »
Eh... if I should turn it back on, let me know.