Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
servmgmt-ss22
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tim-Lukas Bastin
servmgmt-ss22
Commits
8160ad18
Commit
8160ad18
authored
2 years ago
by
timbastin
Browse files
Options
Downloads
Patches
Plain Diff
Changed nginx.conf
parent
f489261e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
prak/pr05/nginx.conf
+16
-18
16 additions, 18 deletions
prak/pr05/nginx.conf
with
16 additions
and
18 deletions
prak/pr05/nginx.conf
+
16
−
18
View file @
8160ad18
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment