Commit 2ad1a42ca667ff21e6f7d2ae906be23a20430036 broke entirely the
Apache configuration for Keystone when used without a port on the
/identity URL. This patch fixes that.
Change-Id: I47805138c66456c9c5fa9af1f4ac33b03d0ce5b9
| ... | ... |
@@ -2,6 +2,16 @@ Listen %PUBLICPORT% |
| 2 | 2 |
Listen %ADMINPORT% |
| 3 | 3 |
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)" keystone_combined
|
| 4 | 4 |
|
| 5 |
+<Directory %KEYSTONE_BIN%> |
|
| 6 |
+ <IfVersion >= 2.4> |
|
| 7 |
+ Require all granted |
|
| 8 |
+ </IfVersion> |
|
| 9 |
+ <IfVersion < 2.4> |
|
| 10 |
+ Order allow,deny |
|
| 11 |
+ Allow from all |
|
| 12 |
+ </IfVersion> |
|
| 13 |
+</Directory> |
|
| 14 |
+ |
|
| 5 | 15 |
<VirtualHost *:%PUBLICPORT%> |
| 6 | 16 |
WSGIDaemonProcess keystone-public processes=5 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
|
| 7 | 17 |
WSGIProcessGroup keystone-public |
| ... | ... |
@@ -16,16 +26,6 @@ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)"
|
| 16 | 16 |
%SSLENGINE% |
| 17 | 17 |
%SSLCERTFILE% |
| 18 | 18 |
%SSLKEYFILE% |
| 19 |
- |
|
| 20 |
- <Directory %KEYSTONE_BIN%> |
|
| 21 |
- <IfVersion >= 2.4> |
|
| 22 |
- Require all granted |
|
| 23 |
- </IfVersion> |
|
| 24 |
- <IfVersion < 2.4> |
|
| 25 |
- Order allow,deny |
|
| 26 |
- Allow from all |
|
| 27 |
- </IfVersion> |
|
| 28 |
- </Directory> |
|
| 29 | 19 |
</VirtualHost> |
| 30 | 20 |
|
| 31 | 21 |
<VirtualHost *:%ADMINPORT%> |
| ... | ... |
@@ -42,19 +42,9 @@ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)"
|
| 42 | 42 |
%SSLENGINE% |
| 43 | 43 |
%SSLCERTFILE% |
| 44 | 44 |
%SSLKEYFILE% |
| 45 |
- |
|
| 46 |
- <Directory %KEYSTONE_BIN%> |
|
| 47 |
- <IfVersion >= 2.4> |
|
| 48 |
- Require all granted |
|
| 49 |
- </IfVersion> |
|
| 50 |
- <IfVersion < 2.4> |
|
| 51 |
- Order allow,deny |
|
| 52 |
- Allow from all |
|
| 53 |
- </IfVersion> |
|
| 54 |
- </Directory> |
|
| 55 | 45 |
</VirtualHost> |
| 56 | 46 |
|
| 57 |
-Alias /identity %PUBLICWSGI% |
|
| 47 |
+Alias /identity %KEYSTONE_BIN%/keystone-wsgi-public |
|
| 58 | 48 |
<Location /identity> |
| 59 | 49 |
SetHandler wsgi-script |
| 60 | 50 |
Options +ExecCGI |
| ... | ... |
@@ -64,7 +54,7 @@ Alias /identity %PUBLICWSGI% |
| 64 | 64 |
WSGIPassAuthorization On |
| 65 | 65 |
</Location> |
| 66 | 66 |
|
| 67 |
-Alias /identity_admin %ADMINWSGI% |
|
| 67 |
+Alias /identity_admin %KEYSTONE_BIN%/keystone-wsgi-admin |
|
| 68 | 68 |
<Location /identity_admin> |
| 69 | 69 |
SetHandler wsgi-script |
| 70 | 70 |
Options +ExecCGI |