57 lines
1.9 KiB
Plaintext
57 lines
1.9 KiB
Plaintext
<IfModule mod_ssl.c>
|
|
<VirtualHost *:443>
|
|
LogLevel info
|
|
ServerAdmin support@example.com
|
|
ServerName www.example.com
|
|
ServerAlias example.com
|
|
|
|
RewriteEngine On
|
|
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
|
|
RewriteRule ^ https://www.example.com%{REQUEST_URI} [R=301,L]
|
|
|
|
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">
|
|
<Files "start.wsgi">
|
|
Require all granted
|
|
</Files>
|
|
</Directory>
|
|
|
|
<Directory "/home/proxadmin/appserver/proxadmin/app">
|
|
WSGIProcessGroup proxadmin
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
WSGIScriptReloading On
|
|
Require all granted
|
|
</Directory>
|
|
|
|
<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">
|
|
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>
|
|
|