Add initial meta-stx to support StarlingX build
[pti/rtp.git] / meta-stx / recipes-devtools / python / files / python-django-horizon / openstack-dashboard-httpd-logging.conf
1 #
2 ## Copyright (C) 2019 Wind River Systems, Inc.
3 #
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15
16 # if you want logging to a separate file, please update your config 
17 # according to the last 4 lines in this snippet, and also take care
18 # to introduce a <VirtualHost > directive.
19 #
20
21 WSGISocketPrefix run/wsgi
22
23 <VirtualHost *:80>
24     WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
25     Alias /static /usr/share/openstack-dashboard/static
26
27     WSGIDaemonProcess dashboard
28     WSGIProcessGroup dashboard
29
30     #DocumentRoot %HORIZON_DIR%/.blackhole/
31
32     <Directory />
33         Options FollowSymLinks
34         AllowOverride None
35     </Directory>
36
37     <Directory /usr/share/openstack-dashboard/>
38         Options Indexes FollowSymLinks MultiViews
39         AllowOverride None
40         Order allow,deny
41         allow from all
42     </Directory>
43
44     ErrorLog logs/openstack_dashboard_error.log
45     LogLevel warn
46     CustomLog logs/openstack_dashboard_access.log combined
47 </VirtualHost>