Tested and fixed server_name resolution

This commit is contained in:
LuckyLaszlo
2022-08-15 19:31:43 +02:00
parent 3fe37ea451
commit fe89be65f6
4 changed files with 38 additions and 9 deletions

View File

@@ -1,8 +1,9 @@
server {
# this is a comment
server_name our_server;
server_name server1;
listen 0.0.0.0:4040;
@@ -92,5 +93,13 @@ server {
# allow_methods DELETE;
# }
}
server {
server_name server2;
listen 0.0.0.0:4040;
index index.html;
root ./www2/;
}