2022-03-12 19:31:54 +01:00
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName 2px.info
|
2022-12-26 07:44:31 +01:00
|
|
|
ServerAdmin {{ server_admin }}
|
2022-03-12 19:31:54 +01:00
|
|
|
DocumentRoot /var/www/empty
|
|
|
|
|
|
|
|
RewriteEngine on
|
2022-03-12 20:11:39 +01:00
|
|
|
RewriteCond %{SERVER_NAME} =2px.info
|
2022-04-01 08:26:02 +02:00
|
|
|
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
2022-03-12 19:31:54 +01:00
|
|
|
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/2px.info.error.log
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/2px.info.access.log combined
|
|
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
|
|
ServerName 2px.info
|
2022-12-26 07:44:31 +01:00
|
|
|
ServerAdmin {{ server_admin }}
|
|
|
|
DocumentRoot {{ document_root }}
|
2022-03-12 19:31:54 +01:00
|
|
|
|
2022-12-26 07:44:31 +01:00
|
|
|
Alias /favicon.png /home/{{ apache2_owner }}/staticroot/img/favicon.png
|
2022-03-12 19:31:54 +01:00
|
|
|
|
2022-12-26 07:44:31 +01:00
|
|
|
Alias /static /home/{{ apache2_owner }}/staticroot
|
|
|
|
<Directory /home/{{ apache2_owner }}/staticroot>
|
2022-03-12 19:31:54 +01:00
|
|
|
Require all granted
|
|
|
|
</Directory>
|
|
|
|
|
2022-12-26 07:44:31 +01:00
|
|
|
WSGIScriptAlias / {{ document_root }}/deux_puissance_x/wsgi.py process-group=2px.info
|
|
|
|
WSGIDaemonProcess 2px.info python-path={{ document_root }}
|
2022-03-12 19:31:54 +01:00
|
|
|
WSGIProcessGroup 2px.info
|
|
|
|
|
2022-12-26 07:44:31 +01:00
|
|
|
<Directory {{ document_root }}/deux_puissance_x>
|
2022-03-12 19:31:54 +01:00
|
|
|
<Files wsgi.py>
|
|
|
|
Require all granted
|
|
|
|
</Files>
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/2px.info.error.log
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/2px.info.access.log combined
|
|
|
|
|
2022-03-12 20:20:59 +01:00
|
|
|
#SSLCertificateFile /etc/letsencrypt/live/2px.info/fullchain.pem
|
|
|
|
#SSLCertificateKeyFile /etc/letsencrypt/live/2px.info/privkey.pem
|
2022-03-12 19:31:54 +01:00
|
|
|
</VirtualHost>
|