Android webbrowser returns code 500 for webpage on Nginx webserver
Posted
by
Paxxil
on Server Fault
See other posts from Server Fault
or by Paxxil
Published on 2011-03-18T12:43:04Z
Indexed on
2011/03/18
16:11 UTC
Read the original article
Hit count: 293
Hey!
I've come to a very weird behavior of a web browser on android mobile phone (I've tried HTC Wildfire and HTC Desire phones).
I have a web server with Nginx v0.8.54. When i try to open a web page on the phone it shows me error:
The requested item could not be loaded! (Status code: 500)
BUT it only happens when I am requesting page through Mobile network. On Wifi it works just fine .... but there is more .... if I stop Nginx and start Apache web server it works just fine on both Mobile network and wifi. I've also tried other mobile network and it is the same behavior.
Some server stats:
- Firewall is OFF
- Selinux is OFF
- the web page (using Nginx web server) opens normally on any other browser (IE, FF, Opera, Chrome, Safari) on the laptop or PC
- Nothing in nginx error.log
This is the only entry in access.log when the page is requested:
xxx.xxx.xxx.xxx - - [17/Mar/2011:11:19:49 -0500] 200 "GET / HTTP/1.1" 27405 "-" "Mozilla/5.0 (Linux; U; Android 2.2; en-gb; Desire_A8181 Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" "-"
index.html has only "Hello World" string in it. There is no fishy javascript or anything else.
.... but there is even more....
if i open the same page on another server, with the same Nginx build, with the same server and web server configuration.... it opens just fine.
if anyone has any idea on what may be going on, i would really appreciate it if you let me know.
Thanks!
EDIT: i forgot to mention that page opens OK on Iphone and Nokia
© Server Fault or respective owner