ServerName 2px.info
ServerAdmin {{ server_admin }}
DocumentRoot /var/www/empty
RewriteEngine on
RewriteCond %{SERVER_NAME} =2px.info
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
ErrorLog ${APACHE_LOG_DIR}/2px.info.error.log
CustomLog ${APACHE_LOG_DIR}/2px.info.access.log combined
ServerName 2px.info
ServerAdmin {{ server_admin }}
DocumentRoot {{ document_root }}
Alias /favicon.png /home/{{ apache2_owner }}/staticroot/img/favicon.png
Alias /static /home/{{ apache2_owner }}/staticroot
Require all granted
WSGIScriptAlias / {{ document_root }}/deux_puissance_x/wsgi.py process-group=2px.info
WSGIDaemonProcess 2px.info python-path={{ document_root }}
WSGIProcessGroup 2px.info
Require all granted
ErrorLog ${APACHE_LOG_DIR}/2px.info.error.log
CustomLog ${APACHE_LOG_DIR}/2px.info.access.log combined
#SSLCertificateFile /etc/letsencrypt/live/2px.info/fullchain.pem
#SSLCertificateKeyFile /etc/letsencrypt/live/2px.info/privkey.pem