"Fossies" - the Fresh Open Source Software Archive

Member "horizon-14.0.4/openstack_dashboard/management/commands/apache_vhost.conf.template" (22 Oct 2019, 1164 Bytes) of package /linux/misc/openstack/horizon-14.0.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {% if SSL %}
    2 # Set "NameVirtualHost {{ NAMEDHOST }}:443" in your httpd.conf file if it's not already done.
    3 <VirtualHost {{ NAMEDHOST }}:443>
    4     SSLEngine on
    5     SSLCertificateFile {{ SSLCERT }}
    6     SSLCertificateKeyFile  {{ SSLKEY }}
    7 {% if CACERT %}    SSLCACertificateFile {{ CACERT }}{% endif %}
    8 {% else %}
    9 <VirtualHost {{ NAMEDHOST }}:80>
   10 {% endif %}
   11     ServerAdmin {{ ADMIN }}
   12     ServerName  {{ VHOSTNAME }}
   13 
   14     DocumentRoot {{ PROJECT_ROOT }}/
   15 
   16     LogLevel warn
   17     ErrorLog {{ LOGDIR }}/{{ PROJECT_NAME }}-error.log
   18     CustomLog {{ LOGDIR }}/{{ PROJECT_NAME }}-access.log combined
   19 
   20     WSGIScriptReloading On
   21     WSGIDaemonProcess {{ PROJECT_NAME }}_website processes={{ PROCESSES }}
   22     WSGIProcessGroup {{ PROJECT_NAME }}_website
   23     WSGIApplicationGroup %{GLOBAL}
   24     WSGIPassAuthorization On
   25 
   26     WSGIScriptAlias / {{ WSGI_FILE }}
   27 {% if APACHE2_VERSION >= 2.4 %}
   28     <Location "/">
   29         Require all granted
   30     </Location>
   31 {% else %}
   32     <Location "/">
   33         Order Allow,Deny
   34         Allow from all
   35     </Location>
   36 {% endif %}
   37     Alias /static {{ STATIC_PATH }}
   38     <Location "/static">
   39         SetHandler None
   40     </Location>
   41 </Virtualhost>