Browse Source

Merge "Apache Configuration"

Zuul 10 months ago
parent
commit
850ca35f5c
2 changed files with 42 additions and 4 deletions
  1. 39
    0
      etc/apache2/iotronic-ssl.conf
  2. 3
    4
      etc/apache2/iotronic.conf

+ 39
- 0
etc/apache2/iotronic-ssl.conf View File

@@ -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
+
17
+Listen 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>

+ 3
- 4
etc/apache2/iotronic.conf View File

@@ -14,11 +14,10 @@
14 14
 # Ironic API through mod_wsgi.  This version assumes you are
15 15
 # running devstack to configure the software.
16 16
 
17
-Listen 1288
17
+Listen 8812
18 18
 
19
-<VirtualHost *:1288>
20
-    WSGIDaemonProcess iotronic 
21
-#user=root group=root threads=10 display-name=%{GROUP}
19
+<VirtualHost *:8812>
20
+    WSGIDaemonProcess iotronic_ssl user=iotronic group=iotronic threads=5 display-name=%{GROUP}
22 21
     WSGIScriptAlias / /var/www/cgi-bin/iotronic/app.wsgi
23 22
 
24 23
     #SetEnv APACHE_RUN_USER stack

Loading…
Cancel
Save