Skip to content
GitLab
Explore
Sign in
Admin message
🚀
This server has been upgraded to GitLab release
16.11
.
🚀
hsrmas
tasks
Wiki
nginx on v000155
nginx on v000155
· Changes
Page history
slavisa.karalic created page: nginx on v000155
authored
Apr 14, 2018
by
Slavisa Karalic
Hide whitespace changes
Inline
Side-by-side
nginx-on-v000155.md
0 → 100644
View page @
abe4527c
`/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