summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-06-28 15:16:25 +0000
committerGerrit Code Review <review@openstack.org>2018-06-28 15:16:25 +0000
commit850ca35f5ca78ee7eaf42ee8ca0f5d9f0ad2047b (patch)
treed3955404700836e388e6702a56b36c5e0a636711
parent8562b1288ae70eb8abdfe2e3e4b101d61cd80d33 (diff)
parent45eee03d23bca51a5b3cba5560c1466b8add851e (diff)
Merge "Apache Configuration"
-rw-r--r--etc/apache2/iotronic-ssl.conf39
-rw-r--r--etc/apache2/iotronic.conf7
2 files changed, 42 insertions, 4 deletions
diff --git a/etc/apache2/iotronic-ssl.conf b/etc/apache2/iotronic-ssl.conf
new file mode 100644
index 0000000..c9d8d99
--- /dev/null
+++ b/etc/apache2/iotronic-ssl.conf
@@ -0,0 +1,39 @@
1# Licensed under the Apache License, Version 2.0 (the "License"); you may
2# not use this file except in compliance with the License. You may obtain
3# a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10# License for the specific language governing permissions and limitations
11# under the License.
12
13# This is an example Apache2 configuration file for using the
14# Ironic API through mod_wsgi. This version assumes you are
15# running devstack to configure the software.
16
17Listen 8812
18
19<VirtualHost *:8812>
20 WSGIDaemonProcess iotronic_ssl user=iotronic group=iotronic threads=5 display-name=%{GROUP}
21 WSGIScriptAlias / /var/www/cgi-bin/iotronic/app.wsgi
22
23 WSGIProcessGroup iotronic
24
25 ErrorLog /var/log/iotronic/iotronic-api_error.log
26 LogLevel debug
27 CustomLog /var/log/iotronic/iotronic-api_access.log combined
28
29 SSLEngine on
30 SSLCertificateFile "/root/ssl/mysitename.crt"
31 SSLCertificateKeyFile "/root/ssl/mysitename.key"
32
33 <Directory /etc/iotronic>
34 WSGIProcessGroup iotronic
35 WSGIApplicationGroup %{GLOBAL}
36 AllowOverride All
37 Require all granted
38 </Directory>
39</VirtualHost>
diff --git a/etc/apache2/iotronic.conf b/etc/apache2/iotronic.conf
index 17c58a7..ecccc67 100644
--- a/etc/apache2/iotronic.conf
+++ b/etc/apache2/iotronic.conf
@@ -14,11 +14,10 @@
14# Ironic API through mod_wsgi. This version assumes you are 14# Ironic API through mod_wsgi. This version assumes you are
15# running devstack to configure the software. 15# running devstack to configure the software.
16 16
17Listen 1288 17Listen 8812
18 18
19<VirtualHost *:1288> 19<VirtualHost *:8812>
20 WSGIDaemonProcess iotronic 20 WSGIDaemonProcess iotronic_ssl user=iotronic group=iotronic threads=5 display-name=%{GROUP}
21#user=root group=root threads=10 display-name=%{GROUP}
22 WSGIScriptAlias / /var/www/cgi-bin/iotronic/app.wsgi 21 WSGIScriptAlias / /var/www/cgi-bin/iotronic/app.wsgi
23 22
24 #SetEnv APACHE_RUN_USER stack 23 #SetEnv APACHE_RUN_USER stack