File: apache-senlin.template

package info (click to toggle)
senlin 6.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 6,872 kB
  • sloc: python: 66,932; sh: 588; makefile: 196
file content (35 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Listen %PORT%

<VirtualHost *:%PORT%>
    WSGIDaemonProcess senlin-api processes=2 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
    WSGIProcessGroup senlin-api
    WSGIScriptAlias / %SENLIN_BIN_DIR%/senlin-wsgi-api
    WSGIApplicationGroup %{GLOBAL}
    WSGIPassAuthorization On
    AllowEncodedSlashes On
    <IfVersion >= 2.4>
      ErrorLogFormat "%{cu}t %M"
    </IfVersion>
    ErrorLog /var/log/%APACHE_NAME%/senlin-api.log
    CustomLog /var/log/%APACHE_NAME%/senlin_api_access.log combined

    <Directory %SENLIN_BIN_DIR%>
        <IfVersion >= 2.4>
            Require all granted
        </IfVersion>
        <IfVersion < 2.4>
            Order allow,deny
            Allow from all
        </IfVersion>
    </Directory>
</VirtualHost>

Alias /cluster %SENLIN_BIN_DIR%/senlin-wsgi-api
<Location /cluster>
    SetHandler wsgi-script
    Options +ExecCGI
    WSGIProcessGroup senlin-api
    WSGIApplicationGroup %{GLOBAL}
    WSGIPassAuthorization On
    AllowEncodedSlashes On
</Location>