|
|
|
`/etc/nginx/sites-enabled/default`
|
|
|
|
```
|
|
|
|
server {
|
|
|
|
listen 443 ssl default_server;
|
|
|
|
server_name v000155.adm.ds.fhnw.ch;
|
|
|
|
ssl_certificate /etc/ssl/certs/apache-selfsigned.crt;
|
|
|
|
ssl_certificate_key /etc/ssl/private/apache-selfsigned.key;
|
|
|
|
ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH;
|
|
|
|
ssl_protocols TLSv1.1 TLSv1.2;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
# First attempt to serve request as file, then
|
|
|
|
# as directory, then fall back to displaying a 404.
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Protocol $scheme;
|
|
|
|
proxy_pass http:/${request_uri}/;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
``` |
|
|
|
\ No newline at end of file |