senlin/devstack/apache-senlin.template
liyi 50e7b418a5 Add access log for devstack.
Miss access log in senlin devstak.

Change-Id: I9116a879d8ea3a97020ce2091476e91fbacf9f63
Closes-Bug: #1674241
2017-03-20 15:28:43 +08:00

36 lines
1011 B
Plaintext

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>