From 0e0b1320f3dc792e2c66532cc0d14bc0831bfb7a Mon Sep 17 00:00:00 2001 From: Guilherme Gondim Date: Tue, 7 Oct 2008 15:33:32 +0000 Subject: [PATCH] =?UTF-8?q?Adicionado=20configura=C3=A7=C3=B5es=20para=20A?= =?UTF-8?q?pache=20com=20WSGI.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/apache/apache.conf | 14 ++++++++++++++ etc/apache/django.wsgi | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 etc/apache/apache.conf create mode 100755 etc/apache/django.wsgi diff --git a/etc/apache/apache.conf b/etc/apache/apache.conf new file mode 100644 index 0000000..0cbf1e8 --- /dev/null +++ b/etc/apache/apache.conf @@ -0,0 +1,14 @@ + + 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 + diff --git a/etc/apache/django.wsgi b/etc/apache/django.wsgi new file mode 100755 index 0000000..bb3763a --- /dev/null +++ b/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()