Opened 16 years ago
Closed 16 years ago
#10185 closed (invalid)
occasionnal 404s returned and request.get_full_path() returns /full/server/path/to/django.fcgi/request instead of /request
Reported by: | loncletom | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 1.0 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
hi,
i'm running a site using django 1.0.2. the site works fine but every once in a while i notice something weird in the logs.
the request in the apache log looks fine but in my own logs which use request.get_full_path() the request is messed up with the django.fcgi path.
a 404 is sent in response.
here's two requests: the first two lines are apache logs, the last two are my own logs using get_full_path().
the first request works fine (notice the 200 response and the short get_full_path()=="/categorie/Adultes/").
in the next request, get_full_path() is messed up. instead of returning "/eloge-du-sein-des-femmes-1873/", i get a ".../django.fcgi/eloge-du-sein-des-femmes-1873/"
livrairie.loncletom.fr 142.169.##.### - - [27/Jan/2009:06:28:53 +0100] "GET /categorie/Adultes/ HTTP/1.0" 200 6244 "http://livrairie.loncletom.fr/comment-faire-une-reliure-japonaise/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)" livrairie.loncletom.fr 142.169.##.### - - [27/Jan/2009:06:28:56 +0100] "GET /eloge-du-sein-des-femmes-1873/ HTTP/1.0" 404 5799 "http://livrairie.loncletom.fr/categorie/Adultes/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)" 01-27 06:28 INFO 142.169.##.### /categorie/Adultes/ 01-27 06:29 INFO 142.169.##.### /alwaysdata/domains/lo/loncletom.fr/livrairie.loncletom.fr/livrairie.loncletom.fr/django.fcgi/eloge-du-sein-des-femmes-1873/
here's another case:
livrairie.loncletom.fr 86.72.##.### - - [27/Jan/2009:18:21:53 +0100] "GET /comment-faire-une-reliure-japonaise/ HTTP/1.1" 404 1894 "http://www.onpeutlefaire.com/forum/index.php?showtopic=9443" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5" 01-27 18:21 INFO 86.72.##.### /alwaysdata/domains/lo/loncletom.fr/livrairie.loncletom.fr/livrairie.loncletom.fr/django.fcgi/comment-faire-une-reliure-japonaise/ http://www.onpeutlefaire.com/forum/index.php?showtopic=9443
i've tried setting FORCE_SCRIPT_NAME = ''
but it didn't help.
unfortunately, it seems to happen totally randomly but a few times every day on a small website.
i wouldn't have noticed without making my own logs using get_full_path().
Change History (3)
comment:1 by , 16 years ago
Version: | 1.0-alpha-2 → 1.0 |
---|
comment:2 by , 16 years ago
comment:3 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
The ticket system is for tracking bugs, not answering configuration questions. If you need help configuring yours server, please mail the django-users mailing list.
you may reach me at "tom at loncletom dot fr"