﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
14635	Documentation improvement on setting up django with OpenBSD	pgurumu@…	nobody	"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"		closed	Documentation	1.2		invalid	django openbsd		Unreviewed	0	0	0	0	0	0
