|
|
@ -1,61 +1,30 @@ |
|
|
|
<VirtualHost *:80> |
|
|
|
ServerAdmin admin@wr.informatik.uni-hamburg.de |
|
|
|
ServerName oer.wr.informatik.uni-hamburg.de |
|
|
|
ServerAdmin admin@hps.vi4io.org |
|
|
|
#ServerName oer.hps.vi4io.org |
|
|
|
|
|
|
|
Redirect permanent / https://oer.wr.informatik.uni-hamburg.de/ |
|
|
|
#/etc/apache2/apache2.conf => LogLevel info |
|
|
|
|
|
|
|
<Directory /> |
|
|
|
Options SymLinksIfOwnerMatch |
|
|
|
AllowOverride None |
|
|
|
Require all denied |
|
|
|
</Directory> |
|
|
|
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log |
|
|
|
LogLevel warn |
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined |
|
|
|
</VirtualHost> |
|
|
|
|
|
|
|
|
|
|
|
<IfModule mod_ssl.c> |
|
|
|
<VirtualHost *:443> |
|
|
|
ServerAdmin admin@wr.informatik.uni-hamburg.de |
|
|
|
ServerName oer.wr.informatik.uni-hamburg.de |
|
|
|
|
|
|
|
#RewriteEngine on |
|
|
|
#RewriteRule "^/$" "http://cluster.wr.informatik.uni-hamburg.de:8000/" [R,L] |
|
|
|
#RewriteRule "^/(.+)$" "http://cluster.wr.informatik.uni-hamburg.de:8000/$1" [R,L] |
|
|
|
|
|
|
|
WSGIScriptAlias / "/home/hoou/git/HOOU/django-platform/main/wsgi.py" |
|
|
|
WSGIDaemonProcess hoou python-home=/home/hoou/git/HOOU/virtualenv python-path=/home/hoou/git/HOOU/django-platform/ home=/home/hoou/git/HOOU/django-platform/ inactivity-timeout=10 request-timeout=10 |
|
|
|
WSGIScriptAlias / "/data/src/main/wsgi.py" |
|
|
|
WSGIDaemonProcess hoou python-home=/data/run/virtualenv python-path=/data/src/ home=/data/src/ inactivity-timeout=10 request-timeout=10 |
|
|
|
WSGIProcessGroup hoou |
|
|
|
WSGIApplicationGroup %{GLOBAL} |
|
|
|
|
|
|
|
DocumentRoot /home/hoou/git/HOOU/django-platform/ |
|
|
|
Alias /static/ "/home/hoou/git/HOOU/django-platform/apache/static/" |
|
|
|
DocumentRoot /data/src/ |
|
|
|
Alias /static/ "/data/run/static/" |
|
|
|
|
|
|
|
<Directory "/home/hoou/git/HOOU/django-platform/apache/static/"> |
|
|
|
<Directory "/data/run/static/"> |
|
|
|
Require all granted |
|
|
|
</Directory> |
|
|
|
|
|
|
|
<Directory "/home/hoou/git/HOOU/django-platform/main/"> |
|
|
|
<Directory "/data/src/main/"> |
|
|
|
Require all granted |
|
|
|
</Directory> |
|
|
|
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error-oer.log |
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log |
|
|
|
LogLevel warn |
|
|
|
CustomLog ${APACHE_LOG_DIR}/oer-access.log combined |
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined |
|
|
|
|
|
|
|
SSLEngine on |
|
|
|
SSLCertificateFile /etc/letsencrypt/live/oer.wr.informatik.uni-hamburg.de/fullchain.pem |
|
|
|
SSLCertificateKeyFile /etc/letsencrypt/live/oer.wr.informatik.uni-hamburg.de/privkey.pem |
|
|
|
|
|
|
|
|
|
|
|
Alias "/.well-known/acme-challenge/" "/var/www/certbot/.well-known/acme-challenge/" |
|
|
|
|
|
|
|
<Directory /var/www/certbot> |
|
|
|
Options SymLinksIfOwnerMatch |
|
|
|
AllowOverride None |
|
|
|
Require all granted |
|
|
|
</Directory> |
|
|
|
SSLCertificateFile /data/ssl/fullchain1.pem |
|
|
|
SSLCertificateKeyFile /data/ssl/privkey1.pem |
|
|
|
</VirtualHost> |
|
|
|
</IfModule> |
|
|
|