summaryrefslogtreecommitdiff
path: root/httpd
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2012-05-01 18:41:36 -0400
committerAdam Young <ayoung@redhat.com>2012-07-16 16:53:58 -0400
commit9b31383c7d8665cf99003974d98df147471e61e1 (patch)
tree1c91746620818d1ce4847c28ab8ac90379c56295 /httpd
parent4b97716e4a68cb55652fe2bfd62373adf2b417c5 (diff)
downloadkeystone-9b31383c7d8665cf99003974d98df147471e61e1.tar.gz
Files for Apache-HTTPD
files required for running Keystone in Apache-HTTPD and instructions to set it up Change-Id: Ib3fdf873ea3816186e6bb63307028ba3aa2edaa9
Diffstat (limited to 'httpd')
-rw-r--r--httpd/README2
-rw-r--r--httpd/keystone.conf8
-rwxr-xr-xhttpd/keystone.py23
3 files changed, 33 insertions, 0 deletions
diff --git a/httpd/README b/httpd/README
new file mode 100644
index 000000000..c4f5a8002
--- /dev/null
+++ b/httpd/README
@@ -0,0 +1,2 @@
+Documentation how to set up Keystone to run with Apache HTTPD is in
+doc/source/apache-httpd.rst
diff --git a/httpd/keystone.conf b/httpd/keystone.conf
new file mode 100644
index 000000000..d542a878a
--- /dev/null
+++ b/httpd/keystone.conf
@@ -0,0 +1,8 @@
+WSGIScriptAlias /keystone/main /var/www/cgi-bin/keystone/main
+WSGIScriptAlias /keystone/admin /var/www/cgi-bin/keystone/admin
+
+<Location "/keystone">
+ NSSRequireSSL
+ Authtype none
+</Location>
+
diff --git a/httpd/keystone.py b/httpd/keystone.py
new file mode 100755
index 000000000..24d4a857c
--- /dev/null
+++ b/httpd/keystone.py
@@ -0,0 +1,23 @@
+import os
+
+from paste import deploy
+
+from keystone import config
+from keystone.common import logging
+from keystone.common import utils
+from keystone.common import wsgi
+
+LOG = logging.getLogger(__name__)
+CONF = config.CONF
+config_files = ['/etc/keystone.conf']
+CONF(config_files=config_files)
+
+conf = CONF.config_file[0]
+name = os.path.basename(__file__)
+
+if CONF.debug:
+ CONF.log_opt_values(logging.getLogger(CONF.prog), logging.DEBUG)
+
+options = deploy.appconfig('config:%s' % CONF.config_file[0])
+
+application = deploy.loadapp('config:%s' % conf, name=name)