~brad-marshall/charms/trusty/apache2-wsgi/fix-haproxy-relations

« back to all changes in this revision

Viewing changes to templates/wsgi-app.conf

  • Committer: Robin Winslow
  • Date: 2014-05-27 14:00:44 UTC
  • Revision ID: robin.winslow@canonical.com-20140527140044-8rpmb3wx4djzwa83
Add all files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<VirtualHost *:80>
 
2
    CustomLog /var/log/apache2/wsgi-app-access.log combined_with_request_time
 
3
    ErrorLog /var/log/apache2/wsgi-app-error.log
 
4
    
 
5
    WSGIScriptAlias / {{ wsgi_path }}
 
6
    WSGICallableObject {{ wsgi_app_name }}
 
7
    Alias   /{{ static_url_path }} {{ static_path }}
 
8
 
 
9
    <Directory {{ static_path }}>
 
10
        Require all granted
 
11
    </Directory>
 
12
 
 
13
    <Directory {{ wsgi_dir }}>
 
14
        <Files {{ wsgi_file }}>
 
15
            Require all granted
 
16
        </Files>
 
17
    </Directory>
 
18
</VirtualHost>
 
19
 
 
20
<VirtualHost *:443>
 
21
    CustomLog /var/log/apache2/wsgi-app-access.log combined_with_request_time
 
22
    ErrorLog /var/log/apache2/wsgi-app-error.log
 
23
 
 
24
    SSLEngine on
 
25
    SSLCertificateKeyFile {{ keyfile_path }}
 
26
    SSLCertificateFile {{ certificate_path }}
 
27
 
 
28
    ProxyPass / http://localhost/
 
29
</VirtualHost>