components/openstack/horizon/files/horizon.stencil
changeset 6856 356aeea98c39
equal deleted inserted replaced
6855:ea44e7e0ca98 6856:356aeea98c39
       
     1 ;
       
     2 ;TLS macro for vhost blocks
       
     3 ;
       
     4 $%define TLS {$%{config/use_tls:?
       
     5     SSLEngine On
       
     6 
       
     7     # Disable the known insecure SSLv3 protocol
       
     8     SSLProtocol all -SSLv3
       
     9 
       
    10     SSLCertificateFile $%{config/ssl_cert_file}
       
    11     $%{config/ssl_ca_cert_file:^*SSLCACertificateFile }
       
    12     SSLCertificateKeyFile $%{config/ssl_cert_key_file}
       
    13 }}
       
    14 
       
    15 ;
       
    16 ; Start of conf file stencil
       
    17 ;
       
    18 # WARNING: THIS FILE GENERATED FROM SMF DATA.
       
    19 #     DO NOT EDIT THIS FILE.  EDITS WILL BE LOST.
       
    20 #
       
    21 
       
    22 ServerRoot "/usr/apache2/2.4"
       
    23 
       
    24 # TODO (dfisher): Investigate minimization of loaded modules
       
    25 LoadModule authn_file_module libexec/mod_authn_file.so
       
    26 LoadModule authn_core_module libexec/mod_authn_core.so
       
    27 LoadModule authz_host_module libexec/mod_authz_host.so
       
    28 LoadModule authz_groupfile_module libexec/mod_authz_groupfile.so
       
    29 LoadModule authz_user_module libexec/mod_authz_user.so
       
    30 LoadModule authz_core_module libexec/mod_authz_core.so
       
    31 LoadModule access_compat_module libexec/mod_access_compat.so
       
    32 LoadModule auth_basic_module libexec/mod_auth_basic.so
       
    33 LoadModule reqtimeout_module libexec/mod_reqtimeout.so
       
    34 LoadModule filter_module libexec/mod_filter.so
       
    35 LoadModule log_config_module libexec/mod_log_config.so
       
    36 LoadModule env_module libexec/mod_env.so
       
    37 LoadModule headers_module libexec/mod_headers.so
       
    38 LoadModule version_module libexec/mod_version.so
       
    39 LoadModule slotmem_shm_module libexec/mod_slotmem_shm.so
       
    40 <IfDefine prefork>
       
    41     LoadModule mpm_prefork_module libexec/mod_mpm_prefork.so
       
    42 </IfDefine>
       
    43 <IfDefine worker>
       
    44     LoadModule mpm_worker_module libexec/mod_mpm_worker.so
       
    45 </IfDefine>
       
    46 <IfDefine !prefork>
       
    47     <IfDefine !worker>
       
    48         LoadModule mpm_event_module libexec/mod_mpm_event.so
       
    49     </IfDefine>
       
    50 </IfDefine>
       
    51 LoadModule unixd_module libexec/mod_unixd.so
       
    52 LoadModule status_module libexec/mod_status.so
       
    53 LoadModule alias_module libexec/mod_alias.so
       
    54 LoadModule wsgi_module libexec/mod_wsgi-2.7.so
       
    55 $%{config/use_tls:?
       
    56 LoadModule ssl_module libexec\/mod_ssl.so
       
    57 }
       
    58 
       
    59 <IfModule unixd_module>
       
    60     User webservd
       
    61     Group webservd
       
    62 </IfModule>
       
    63 
       
    64 PidFile /var/lib/openstack_dashboard/openstack_dashboard.httpd.pid
       
    65 
       
    66 ServerName $%{config/servername}
       
    67 
       
    68 Listen $%{config/port}
       
    69 
       
    70 <Directory />
       
    71     AllowOverride none
       
    72     Require all denied
       
    73 </Directory>
       
    74 
       
    75 ErrorLogFormat "%{cu}t %M"
       
    76 ErrorLog "$%{config/error_log}"
       
    77 LogLevel warn
       
    78 
       
    79 <IfModule log_config_module>
       
    80     LogFormat "%h %u %t \\"%r\\" %p %>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\"" combined
       
    81 </IfModule>
       
    82 
       
    83 CustomLog $%{config/access_log} combined
       
    84 
       
    85 <Directory /usr/lib/python2.7/vendor-packages/openstack_dashboard/static>
       
    86     Options Indexes FollowSymLinks MultiViews
       
    87     AllowOverride None
       
    88     Require all granted
       
    89 </Directory>
       
    90 
       
    91 <Directory /usr/lib/python2.7/vendor-packages/openstack_dashboard/wsgi>
       
    92     Options Indexes FollowSymLinks MultiViews
       
    93     AllowOverride None
       
    94     Require all granted
       
    95 </Directory>
       
    96 
       
    97 WSGISocketPrefix /var/run/openstack_dashboard_wsgi_
       
    98 
       
    99 <VirtualHost *:$%{config/port}>
       
   100     Alias /horizon/static /usr/lib/python2.7/vendor-packages/openstack_dashboard/static/
       
   101 $%[TLS]
       
   102     WSGIDaemonProcess horizon processes=3 threads=10 user=webservd group=webservd display-name=%\{GROUP\}
       
   103     WSGIScriptAlias /horizon /usr/lib/python2.7/vendor-packages/openstack_dashboard/wsgi/django.wsgi
       
   104     WSGIProcessGroup horizon
       
   105     WSGIApplicationGroup %\{GLOBAL\}
       
   106     WSGIPassAuthorization On
       
   107 </VirtualHost>