proxadmin/example_apache_vhost.conf

46 lines
1.6 KiB
Plaintext
Raw Normal View History

2017-03-08 13:53:09 -05:00
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin support@example.com
ServerName www.example.com
ServerAlias example.com
WSGIDaemonProcess proxadmin user=proxadmin group=proxadmin threads=5
WSGIScriptAlias / /home/proxadmin/appserver/proxmaster-panel/start.wsgi
<Directory "/home/proxadmin/appserver/proxmaster-panel">
<Files "start.wsgi">
Require all granted
</Files>
</Directory>
<Directory "/home/proxadmin/appserver/proxmaster-panel/app">
WSGIProcessGroup proxadmin
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Require all granted
Order allow,deny
Allow from all
</Directory>
Alias /static /home/proxadmin/appserver/proxmaster-panel/app/static
<Directory "/home/proxadmin/appserver/proxmaster-panel/app/static">
Require all granted
Order allow,deny
Allow from all
</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>