Commits

John Costa committed be997a3

add httpd.conf and example.wsgi init files

Comments (0)

Files changed (2)

apache/conf/example.wsgi

+import os
+import sys
+
+from django.core.handlers.wsgi import WSGIHandler
+
+os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'
+application = WSGIHandler()

apache/conf/httpd.conf

+ServerRoot "/home/johncosta/webapps/example_application/apache2"
+
+LoadModule dir_module        modules/mod_dir.so
+LoadModule env_module        modules/mod_env.so
+LoadModule log_config_module modules/mod_log_config.so
+LoadModule mime_module       modules/mod_mime.so
+LoadModule rewrite_module    modules/mod_rewrite.so
+LoadModule setenvif_module   modules/mod_setenvif.so
+LoadModule wsgi_module       modules/mod_wsgi.so
+
+LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
+CustomLog /home/johncosta/logs/user/access_example_application.log combined
+ErrorLog /home/johncosta/logs/user/error_example_application.log
+KeepAlive Off
+Listen 12503
+MaxSpareThreads 3
+MinSpareThreads 1
+ServerLimit 1
+SetEnvIf X-Forwarded-SSL on HTTPS=1
+ThreadsPerChild 5
+WSGIDaemonProcess example_application processes=5 python-path=/home/johncosta/webapps/example_application:/home/johncosta/webapps/example_application/lib/python2.6 threads=1
+WSGIPythonPath /home/johncosta/webapps/example_application:/home/johncosta/webapps/example_application/lib/python2.6
+WSGIScriptAlias / /home/johncosta/webapps/example_application/myproject.wsgi