mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Consolidate to single WSGI entry point
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user