pdc url prefix.

This commit is contained in:
Ralph Bean 2016-01-12 13:43:22 -05:00
parent fbb1fb35b0
commit 4ee07e345a

View file

@ -1,5 +1,5 @@
Alias /docs/ /usr/share/doc/pdc/docs/build/html/ Alias /pdc/docs/ /usr/share/doc/pdc/docs/build/html/
Alias /saml2protected /usr/share/ipsilon/ui/saml2sp Alias /pdc/saml2protected /usr/share/ipsilon/ui/saml2sp
WSGIDaemonProcess pdc user=apache group=apache maximum-requests=1000 display-name=pdc processes={{ wsgi_procs }} threads={{ wsgi_threads }} WSGIDaemonProcess pdc user=apache group=apache maximum-requests=1000 display-name=pdc processes={{ wsgi_procs }} threads={{ wsgi_threads }}
WSGISocketPrefix run/wsgi WSGISocketPrefix run/wsgi
@ -7,14 +7,14 @@ WSGIRestrictStdout On
WSGIRestrictSignal Off WSGIRestrictSignal Off
WSGIPythonOptimize 1 WSGIPythonOptimize 1
WSGIScriptAlias / /usr/lib/python2.7/site-packages/pdc/wsgi.py WSGIScriptAlias /pdc/ /usr/lib/python2.7/site-packages/pdc/wsgi.py
RewriteEngine on RewriteEngine on
# First try to find the files in pdc # First try to find the files in pdc
RewriteCond "/usr/lib/python2.7/site-packages/pdc/static/$1" -f RewriteCond "/usr/lib/python2.7/site-packages/pdc/static/$1" -f
RewriteRule "^/static/(.*)" "/usr/lib/python2.7/site-packages/pdc/static/$1" [L] RewriteRule "^/pdc/static/(.*)" "/usr/lib/python2.7/site-packages/pdc/static/$1" [L]
# Try to find them in the patternfly files # Try to find them in the patternfly files
RewriteRule "^/static/(.*)" "/usr/share/patternfly1/resources/$1" [L] RewriteRule "^/pdc/static/(.*)" "/usr/share/patternfly1/resources/$1" [L]
<Location "/"> <Location "/">
SetHandler wsgi-script SetHandler wsgi-script