Try this without the url prefix.

This commit is contained in:
Ralph Bean 2016-01-12 13:52:32 -05:00
parent 4ee07e345a
commit 9a992a86cb
3 changed files with 7 additions and 7 deletions

View file

@ -226,7 +226,7 @@ listen pdc 0.0.0.0:10045
balance hdr(appserver)
server pdc-web01 pdc-web01:80 check inter 10s rise 1 fall 2
server pdc-web02 pdc-web02:80 check inter 10s rise 1 fall 2
option httpchk GET /pdc/rest_api/v1/
option httpchk GET /rest_api/v1/
# Apache doesn't handle the initial connection here like the other proxy
# entries. This proxy also doesn't use the http mode like the others.

View file

@ -204,7 +204,7 @@ listen openqa 0.0.0.0:10044
listen pdc 0.0.0.0:10045
balance hdr(appserver)
server pdc-web01 pdc-web01:80 check inter 10s rise 1 fall 2
option httpchk GET /pdc/rest_api/v1/
option httpchk GET /rest_api/v1/
# Apache doesn't handle the initial connection here like the other proxy
# entries. This proxy also doesn't use the http mode like the others.

View file

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