Jamie Lennox | a00e5f8 | 2013-09-17 12:47:03 +1000 | [diff] [blame] | 1 | Listen %PUBLICPORT% |
| 2 | Listen %ADMINPORT% |
Morgan Fainberg | a80cb81 | 2015-03-12 17:55:51 -0700 | [diff] [blame] | 3 | LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)" keystone_combined |
Jamie Lennox | a00e5f8 | 2013-09-17 12:47:03 +1000 | [diff] [blame] | 4 | |
| 5 | <VirtualHost *:%PUBLICPORT%> |
Dean Troyer | f8ae647 | 2015-02-17 11:05:06 -0600 | [diff] [blame] | 6 | WSGIDaemonProcess keystone-public processes=5 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV% |
Jamie Lennox | a00e5f8 | 2013-09-17 12:47:03 +1000 | [diff] [blame] | 7 | WSGIProcessGroup keystone-public |
Brant Knudson | 2ad1a42 | 2015-06-23 10:53:50 -0500 | [diff] [blame] | 8 | WSGIScriptAlias / %KEYSTONE_BIN%/keystone-wsgi-public |
Jamie Lennox | a00e5f8 | 2013-09-17 12:47:03 +1000 | [diff] [blame] | 9 | WSGIApplicationGroup %{GLOBAL} |
Steve Martinelli | dc31f76 | 2014-12-13 23:34:15 -0500 | [diff] [blame] | 10 | WSGIPassAuthorization On |
Noboru Iwamatsu | b4495eb | 2014-07-02 18:31:31 +0900 | [diff] [blame] | 11 | <IfVersion >= 2.4> |
| 12 | ErrorLogFormat "%{cu}t %M" |
| 13 | </IfVersion> |
Brant Knudson | cfc9465 | 2014-08-21 18:25:29 -0500 | [diff] [blame] | 14 | ErrorLog /var/log/%APACHE_NAME%/keystone.log |
Morgan Fainberg | a80cb81 | 2015-03-12 17:55:51 -0700 | [diff] [blame] | 15 | CustomLog /var/log/%APACHE_NAME%/keystone_access.log keystone_combined |
Rob Crittenden | 18d4778 | 2014-03-19 17:47:42 -0400 | [diff] [blame] | 16 | %SSLENGINE% |
| 17 | %SSLCERTFILE% |
| 18 | %SSLKEYFILE% |
Brant Knudson | 2ad1a42 | 2015-06-23 10:53:50 -0500 | [diff] [blame] | 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> |
Jamie Lennox | a00e5f8 | 2013-09-17 12:47:03 +1000 | [diff] [blame] | 29 | </VirtualHost> |
| 30 | |
| 31 | <VirtualHost *:%ADMINPORT%> |
Dean Troyer | f8ae647 | 2015-02-17 11:05:06 -0600 | [diff] [blame] | 32 | WSGIDaemonProcess keystone-admin processes=5 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV% |
Jamie Lennox | a00e5f8 | 2013-09-17 12:47:03 +1000 | [diff] [blame] | 33 | WSGIProcessGroup keystone-admin |
Brant Knudson | 2ad1a42 | 2015-06-23 10:53:50 -0500 | [diff] [blame] | 34 | WSGIScriptAlias / %KEYSTONE_BIN%/keystone-wsgi-admin |
Jamie Lennox | a00e5f8 | 2013-09-17 12:47:03 +1000 | [diff] [blame] | 35 | WSGIApplicationGroup %{GLOBAL} |
Steve Martinelli | b57f636 | 2014-12-15 20:55:54 -0500 | [diff] [blame] | 36 | WSGIPassAuthorization On |
Noboru Iwamatsu | b4495eb | 2014-07-02 18:31:31 +0900 | [diff] [blame] | 37 | <IfVersion >= 2.4> |
| 38 | ErrorLogFormat "%{cu}t %M" |
| 39 | </IfVersion> |
Brant Knudson | cfc9465 | 2014-08-21 18:25:29 -0500 | [diff] [blame] | 40 | ErrorLog /var/log/%APACHE_NAME%/keystone.log |
Morgan Fainberg | a80cb81 | 2015-03-12 17:55:51 -0700 | [diff] [blame] | 41 | CustomLog /var/log/%APACHE_NAME%/keystone_access.log keystone_combined |
Rob Crittenden | 18d4778 | 2014-03-19 17:47:42 -0400 | [diff] [blame] | 42 | %SSLENGINE% |
| 43 | %SSLCERTFILE% |
| 44 | %SSLKEYFILE% |
Brant Knudson | 2ad1a42 | 2015-06-23 10:53:50 -0500 | [diff] [blame] | 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> |
Jamie Lennox | a00e5f8 | 2013-09-17 12:47:03 +1000 | [diff] [blame] | 55 | </VirtualHost> |
Brant Knudson | 3bae7d4 | 2015-06-21 09:56:17 -0500 | [diff] [blame] | 56 | |
| 57 | Alias /identity %PUBLICWSGI% |
| 58 | <Location /identity> |
| 59 | SetHandler wsgi-script |
| 60 | Options +ExecCGI |
| 61 | |
| 62 | WSGIProcessGroup keystone-public |
| 63 | WSGIApplicationGroup %{GLOBAL} |
| 64 | WSGIPassAuthorization On |
| 65 | </Location> |
| 66 | |
| 67 | Alias /identity_admin %ADMINWSGI% |
| 68 | <Location /identity_admin> |
| 69 | SetHandler wsgi-script |
| 70 | Options +ExecCGI |
| 71 | |
| 72 | WSGIProcessGroup keystone-admin |
| 73 | WSGIApplicationGroup %{GLOBAL} |
| 74 | WSGIPassAuthorization On |
| 75 | </Location> |