Skip to content
GitLab
Explore
Sign in
Admin message
🚀
This server has been upgraded to GitLab release
16.11
.
🚀
hsrmas
tasks
Wiki
nginx on web0
nginx on web0
· Changes
Page history
Update nginx on web0
authored
May 21, 2018
by
Slavisa Karalic
Hide whitespace changes
Inline
Side-by-side
nginx-on-web0.md
View page @
4739b01c
...
@@ -72,6 +72,19 @@ server {
...
@@ -72,6 +72,19 @@ server {
log_not_found off;
log_not_found off;
}
}
}
}
```
## Beispiel einer location:
`/etc/nginx/conf.d/locations/test-webdienst.conf`
```
location /test-webdienst {
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 https://v000155.adm.ds.fhnw.ch/10.0.3.24;
}
```
```
**proxy_pass**
value ist wie folgt aufgebaut: https://[hostname-des-container-servers]/[interne-ip-adresse-des-containers];
**proxy_pass**
value ist wie folgt aufgebaut: https://[hostname-des-container-servers]/[interne-ip-adresse-des-containers];
\ No newline at end of file