2013-09-07 22:27:43 +04:00
NameVirtualHost *:443
2013-06-24 10:32:52 +04:00
WSGISocketPrefix /var/run/wsgi
2016-03-23 22:46:00 +03:00
WSGIPythonHome /var/lib/awx/venv/tower
2014-03-10 23:54:28 +04:00
# LoadModule ssl_module modules/mod_ssl.so
2013-06-23 21:21:02 +04:00
2013-09-07 22:27:43 +04:00
<VirtualHost _default_:443>
2013-06-23 21:21:02 +04:00
ServerName localhost
2013-11-10 03:58:08 +04:00
ServerAlias *
2013-06-23 21:21:02 +04:00
DocumentRoot /var/lib/awx/public
2013-09-07 22:27:43 +04:00
SSLEngine on
2015-03-12 00:01:02 +03:00
# This certificate can be replaced.
# However, do not use a different name for, or path to, the SSL certificate.
# Tower's live events feature requires the SSL certificate to be in this location.
2015-01-27 01:11:52 +03:00
SSLCertificateFile /etc/tower/tower.cert
SSLCertificateKeyFile /etc/tower/tower.key
2015-01-27 21:18:29 +03:00
SSLProtocol all -SSLv3 -SSLv2
2013-06-23 21:21:02 +04:00
WSGIScriptAlias / /var/lib/awx/wsgi.py
WSGIPassAuthorization On
WSGIDaemonProcess awx user=awx group=awx processes=2 threads=20 maximum-requests=1000 display-name="%{GROUP}"
WSGIProcessGroup awx
Alias /favicon.ico /var/lib/awx/public/static/favicon.ico
Alias /static/ /var/lib/awx/public/static/
<Directory /var/lib/awx/>
<Files wsgi.py>
2014-03-10 20:08:37 +04:00
<IfVersion >= 2.3>
Require all granted
</IfVersion>
<IfVersion < 2.3>
Order deny,allow
Allow from all
</IfVersion>
2013-06-23 21:21:02 +04:00
</Files>
</Directory>
<Directory /var/lib/awx/public/>
2014-03-10 20:08:37 +04:00
<IfVersion >= 2.3>
Require all granted
</IfVersion>
<IfVersion < 2.3>
Order deny,allow
Allow from all
</IfVersion>
2013-06-23 21:21:02 +04:00
</Directory>
</VirtualHost>