#14635: Documentation improvement on setting up django with OpenBSD
-------------------------------+--------------------------------------------
Reporter: [email protected] | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: 1.2
Keywords: django openbsd | Stage: Unreviewed
Has_patch: 0 |
-------------------------------+--------------------------------------------
I found it really hard to configure django on OpenBSD (stock Apache). I
eventually figured it out and it works and would like to add this to the
documentation. I think this will be useful. This requires few changes to
httpd.conf
1. Create directory called django under /var/www/htdocs
2. Create django project under /var/www/htdocs/django
3. Create NEW_PROJECT.fcgi file under /var/www/htdocs/django (Name of the
filename matters, because this will be used in !VirtualHost)
Under !VirtualHost configuration for default htdocs access
Add the following lines
{{{
<VirtualHost _default_:443>
... snip ...
RewriteEngine On
RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/django/NEW_PROJECT/(.*)$ /django/NEW_PROJECT.fcgi/$1 [QSA,L]
... snip ...
</VirtualHost>
}}}
Enable ExecCGI options for /var/www/htdocs directory
--
Ticket URL: <http://code.djangoproject.com/ticket/14635>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.