Consolidate to single WSGI entry point

This commit is contained in:
Jason Gerard DeRose
2010-02-23 10:53:47 -07:00
parent 5220c949a4
commit 942919bef7
8 changed files with 276 additions and 83 deletions

View File

@@ -11,14 +11,6 @@ PythonImport ipaserver main_interpreter
# This is required so the auto-configuration works with Firefox 2+
AddType application/java-archive jar
# This is where we redirect on failed auth
Alias /ipa/errors "/usr/share/ipa/html"
# For the MIT Windows config files
Alias /ipa/config "/usr/share/ipa/html"
# For CRL publishing
Alias /ipa/crl "/var/lib/pki-ca/publish"
<Location "/ipa">
@@ -32,34 +24,42 @@ Alias /ipa/crl "/var/lib/pki-ca/publish"
KrbSaveCredentials on
Require valid-user
ErrorDocument 401 /ipa/errors/unauthorized.html
</Location>
<Location "/ipa/xml">
SetHandler python-program
PythonInterpreter main_interpreter
PythonHandler ipaserver::xmlrpc
PythonHandler ipaserver::handler
PythonDebug Off
PythonOption SCRIPT_NAME /ipa/xml
PythonOption SCRIPT_NAME /ipa
PythonAutoReload Off
</Location>
<Location "/ipa/json">
SetHandler python-program
PythonInterpreter main_interpreter
PythonHandler ipaserver::jsonrpc
PythonDebug Off
PythonOption SCRIPT_NAME /ipa/json
PythonAutoReload Off
</Location>
#<Location "/ipa/xml">
# SetHandler python-program
# PythonInterpreter main_interpreter
# PythonHandler ipaserver::xmlrpc
# PythonDebug Off
# PythonOption SCRIPT_NAME /ipa/xml
# PythonAutoReload Off
#</Location>
<Location "/ipa/ui">
SetHandler python-program
PythonInterpreter main_interpreter
PythonHandler ipaserver::webui
PythonDebug Off
PythonOption SCRIPT_NAME /ipa/ui
PythonAutoReload Off
</Location>
#<Location "/ipa/json">
# SetHandler python-program
# PythonInterpreter main_interpreter
# PythonHandler ipaserver::jsonrpc
# PythonDebug Off
# PythonOption SCRIPT_NAME /ipa/json
# PythonAutoReload Off
#</Location>
#<Location "/ipa/ui">
# SetHandler python-program
# PythonInterpreter main_interpreter
# PythonHandler ipaserver::webui
# PythonDebug Off
# PythonOption SCRIPT_NAME /ipa/ui
# PythonAutoReload Off
#</Location>
Alias /ipa-assets/ "/var/cache/ipa/assets/"
<Directory "/var/cache/ipa/assets">
@@ -72,14 +72,39 @@ Alias /ipa-assets/ "/var/cache/ipa/assets/"
</Directory>
<Location "/ipa/errors">
SetHandler None
</Location>
<Location "/ipa/config">
SetHandler None
</Location>
<Location "/ipa/crl">
SetHandler None
</Location>
# This is where we redirect on failed auth
Alias /ipa/errors "/usr/share/ipa/html"
# For the MIT Windows config files
Alias /ipa/config "/usr/share/ipa/html"
# Do no authentication on the directory that contains error messages
<Directory "/usr/share/ipa/html">
SetHandler None
AllowOverride None
Satisfy Any
Allow from all
</Directory>
# For CRL publishing
Alias /ipa/crl "/var/lib/pki-ca/publish"
<Directory "/var/lib/pki-ca/publish">
SetHandler None
AllowOverride None
Options Indexes FollowSymLinks
Satisfy Any