diff options
Diffstat (limited to 'rpkid/portal-gui/apache')
-rw-r--r-- | rpkid/portal-gui/apache/rpki.conf.in | 29 | ||||
-rw-r--r-- | rpkid/portal-gui/apache/rpki.wsgi | 27 |
2 files changed, 56 insertions, 0 deletions
diff --git a/rpkid/portal-gui/apache/rpki.conf.in b/rpkid/portal-gui/apache/rpki.conf.in new file mode 100644 index 00000000..3dc2974f --- /dev/null +++ b/rpkid/portal-gui/apache/rpki.conf.in @@ -0,0 +1,29 @@ +# $Id$ +# +# Sample apache configuration file for using the portal-gui with +# mod_wsgi + +# +# Configure the WSGI application to run as a separate process from the +# Apache daemon itself. +# +#WSGIDaemonProcess rpki processes=2 +#WSGIProcessGroup rpki + +# +# Defines the URL to the portal-gui +# +WSGIScriptAlias / @INSTDIR@/apache/rpki.wsgi +<Directory @INSTDIR@/rpkigui> +Order deny,allow +Allow from all +</Directory> + +# media for the /admin/ site +Alias /media/ /usr/lib/python2.6/site-packages/django/contrib/admin/media/ +<Directory /usr/lib/python2.6/site-packages/django/contrib/admin/media> +Order allow,deny +Allow from all +</Directory> + +# vim:ft=apache diff --git a/rpkid/portal-gui/apache/rpki.wsgi b/rpkid/portal-gui/apache/rpki.wsgi new file mode 100644 index 00000000..0a7797a7 --- /dev/null +++ b/rpkid/portal-gui/apache/rpki.wsgi @@ -0,0 +1,27 @@ +# $Id$ +""" +Copyright (C) 2010, 2011 SPARTA, Inc. dba Cobham Analytic Solutions + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND SPARTA DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL SPARTA BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + +This is an example wsgi application for use with mod_wsgi and apache. + +""" + +import os + +os.environ['DJANGO_SETTINGS_MODULE'] = 'rpki.gui.settings' + +import django.core.handlers.wsgi +application = django.core.handlers.wsgi.WSGIHandler() |