similar but contradictory content, same headlines, slightly different URLs
|Reported by:||rory.cawley@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Please take a look the the following 2 URLs:
It's almost the same information but there are significant enough differences. Not sure why there are two documents, one of them is an old one that needs to be cleaned up.
Once you’ve got mod_wsgi installed and activated, edit your Apache server’s httpd.conf file and add:
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
Allow from all
Once you’ve got mod_wsgi installed and activated, edit your httpd.conf file and add:
WSGIScriptAlias / /path/to/mysite/apache/django.wsgi
The first bit above is the url you want to be serving your application at (/ indicates the root url), and the second is the location of a "WSGI file" -- see below -- on your system, usually inside of your project. This tells Apache to serve any request below the given URL using the WSGI application defined by that file.
Next we'll need to actually create this WSGI application, so create the file mentioned in the second part of WSGIScriptAlias and add:
os.environDJANGO_SETTINGS_MODULE? = 'mysite.settings'
application = django.core.handlers.wsgi.WSGIHandler()
Change History (2)
comment:1 Changed 3 years ago by ramiro
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted