Browse Source

Adicionado configurações para Apache com WSGI.

0.2
Guilherme Gondim 16 years ago
parent
commit
0e0b1320f3
  1. 14
      etc/apache/apache.conf
  2. 10
      etc/apache/django.wsgi

14
etc/apache/apache.conf

@ -0,0 +1,14 @@
<VirtualHost *:80>
ServerName sigi.interlegis.gov.br
WSGIScriptAlias / /srv/webapps/SIGI/etc/apache/django.wsgi
ErrorLog /var/log/apache2/sigi-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/sigi-access.log combined
ServerSignature Off
</VirtualHost>

10
etc/apache/django.wsgi

@ -0,0 +1,10 @@
#!/usr/bin/env python
# -*- mode: python -*-
import os, sys
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__) + '../..'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'sigi.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Loading…
Cancel
Save