proxadmin/example.com-le-ssl.conf

57 lines
1.9 KiB
Plaintext
Raw Normal View History

2017-03-08 13:53:09 -05:00
<IfModule mod_ssl.c>
<VirtualHost *:443>
2017-05-29 11:59:30 -04:00
LogLevel info
2017-03-08 13:53:09 -05:00
ServerAdmin support@example.com
ServerName www.example.com
ServerAlias example.com
2017-05-29 11:59:30 -04:00
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^ https://www.example.com%{REQUEST_URI} [R=301,L]
2017-03-08 13:53:09 -05:00
2017-05-29 11:59:30 -04:00
WSGIDaemonProcess proxadmin user=proxadmin group=proxadmin threads=5 home=/home/proxadmin/appserver/proxadmin/
WSGIScriptAlias / /home/proxadmin/appserver/proxadmin/start.wsgi
<Directory "/home/proxadmin/appserver/proxadmin">
2017-03-08 13:53:09 -05:00
<Files "start.wsgi">
Require all granted
</Files>
</Directory>
2017-05-29 11:59:30 -04:00
<Directory "/home/proxadmin/appserver/proxadmin/app">
2017-03-08 13:53:09 -05:00
WSGIProcessGroup proxadmin
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Require all granted
</Directory>
2017-05-29 11:59:30 -04:00
<Directory "/home/proxadmin/appserver/proxadmin/log">
Require all granted
</Directory>
Alias /static /home/proxadmin/appserver/proxadmin/app/static
<Directory "/home/proxadmin/appserver/proxadmin/app/static">
Require all granted
</Directory>
Alias /novnc /home/proxadmin/appserver/noVNC
<Directory "/home/proxadmin/appserver/noVNC">
2017-03-08 13:53:09 -05:00
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/www.example.com-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/www.example.com-access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/www.example.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.example.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/www.example.com/chain.pem
</VirtualHost>
</IfModule>
2017-05-29 11:59:30 -04:00