Skip to content
Snippets Groups Projects
Commit 8160ad18 authored by timbastin's avatar timbastin
Browse files

Changed nginx.conf

parent f489261e
No related branches found
No related tags found
No related merge requests found
......@@ -2,13 +2,25 @@
events {}
http {
server {
# listen on port 80 and 443 for ipv4 and ipv6 requests
listen 80;
listen [::]:80;
server_name _;
# there is no server name provided here - match anything else
location / {
# return the error index.html
root /www/data/error;
}
}
server {
# listen on port 80 and 443 for ipv4 and ipv6 requests
listen 80;
listen [::]:80;
# if the requested hostname does match one of the following, check the location block.
server_name localhost tbasti2s.l3montree.com tbasti2s.l3montree.education;
server_name localhost www.tbasti2s.l3montree.education tbasti2s.l3montree.com tbasti2s.l3montree.education;
location / {
# always return static files
......@@ -22,7 +34,7 @@ http {
listen [::]:80;
# if the requested hostname does match one of the following, check the location block.
server_name http://miniwhoami-loc1.tbasti2s.l3montree.education;
server_name miniwhoami-loc1.tbasti2s.l3montree.education www.miniwhoami-loc1.tbasti2s.l3montree.com miniwhoami-loc1.tbasti2s.l3montree.education;
location / {
# always return static files
......@@ -36,7 +48,7 @@ http {
listen [::]:80;
# if the requested hostname does match one of the following, check the location block.
server_name http://miniwhoami-loc2.tbasti2s.l3montree.education;
server_name miniwhoami-loc2.tbasti2s.l3montree.education www.miniwhoami-loc2.tbasti2s.l3montree.com miniwhoami-loc2.tbasti2s.l3montree.education;
location / {
# always return static files
......@@ -50,25 +62,11 @@ http {
listen [::]:80;
# if the requested hostname does match one of the following, check the location block.
server_name http://echo.tbasti2s.l3montree.education;
server_name echo.tbasti2s.l3montree.education www.echo.tbasti2s.l3montree.education;
location / {
# always return static files
proxy_pass http://echo:8080;
}
}
server {
# listen on port 80 and 443 for ipv4 and ipv6 requests
listen 80 default;
listen [::]:80 default;
server_name _;
# there is no server name provided here - match anything else
location / {
# return the error index.html
root /www/data/error;
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment