mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-24 07:53:47 +00:00
35 lines
923 B
Text
35 lines
923 B
Text
<VirtualHost *:80>
|
|
ServerName URL_SERVER
|
|
|
|
Redirect "/" "https://URL_SERVER/"
|
|
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName URL_SERVER
|
|
|
|
LogLevel warn
|
|
ErrorLog ${APACHE_LOG_DIR}/re2o-error.log
|
|
CustomLog ${APACHE_LOG_DIR}/re2o-access.log combined
|
|
|
|
<Directory />
|
|
AuthType Basic
|
|
AuthName "Password Required"
|
|
AuthUserFile /usr/local/password
|
|
Require valid-user
|
|
#Require all granted
|
|
</Directory>
|
|
|
|
Alias /static PATH/static_files
|
|
Alias /media PATH/media
|
|
|
|
WSGIScriptAlias / PATH/re2o/wsgi.py
|
|
WSGIProcessGroup re2o
|
|
WSGIDaemonProcess re2o processes=2 threads=16 maximum-requests=1000 display-name=re2o
|
|
WSGIPassAuthorization On
|
|
|
|
SSLCertificateFile /etc/letsencrypt/live/LE_PATH/fullchain.pem
|
|
SSLCertificateKeyFile /etc/letsencrypt/live/LE_PATH/privkey.pem
|
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
|
|
|
</VirtualHost>
|