Il giorno 24/gen/2011, alle ore 15.50, Jay States ha scritto:

> I'm having this strange problem that my application name is being
> appended to the url. For sample:
> http://admin.theirry.local/login/ becomes
> http://admin.theirry.localtheirry/login/
> 
> This never happened before 9.6.4 - I have tested both trunk and 9.6.6.
> 
> Any suggestions?
> 
> Thanks,
> Jay
> 
> This is my django start file
> 
> this file is located @ sample_dir/deploy/theirry_uwsgi.py
> 
> #!/usr/bin/env python
> 
> import sys, os, uwsgi
> sys.stdout = sys.stderr
> 
> sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),
> '../..'))) # move down 2 levels
> sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),
> '..'))) # move down a level
> 
> os.environ['DJANGO_SETTINGS_MODULE'] = 'theirry.settings'
> os.environ['PYTHON_EGG_CACHE'] = '/tmp/python_egg_cache'
> 
> import django.core.handlers.wsgi
> _theirry = django.core.handlers.wsgi.WSGIHandler()
> 
> uwsgi.applications = {'':_theirry} # necessary for uwsgi
> 
> def application(environ, start_response):
>    #environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']
>    #environ['SCRIPT_NAME'] = ''
>    if environ['wsgi.url_scheme'] == 'https':
>        environ['HTTPS'] = 'on'
>    return _theirry(environ, start_response)
> 
> This is my command line start:
> sudo /usr/local/bin/uwsgi -s /tmp/theirry_django.sock --pp
> /usr/local/www/theirry/deploy/ -w uwsgi_theirry -t 120 -M -p 2 -R 5000
> -d /var/log/uwsgi.log --no-orphans
> 
> 
> 

Which webserver handler ?

If it is nginx can you post all the uwsgi_param directives ?

--
Roberto De Ioris
http://unbit.it

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to