Add *.app.vostan.org servers.
Change configuration name. Now configuration name is the reversed site name. Add all those configuration to https certificate.
This commit is contained in:
@@ -35,8 +35,8 @@ server {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
# If host name is not known, then simply return 404
|
||||
#
|
||||
## If host name is not known, then simply return 404
|
||||
##
|
||||
set $known_host 0;
|
||||
if ($host = www.vostan.org) {
|
||||
set $known_host 1;
|
||||
@@ -44,7 +44,10 @@ server {
|
||||
if ($host = drive.vostan.org) {
|
||||
set $known_host 1;
|
||||
}
|
||||
if ($host ~* "^.+\.app\.vostan\.org$") {
|
||||
set $known_host 1;
|
||||
}
|
||||
if ($known_host != 1) {
|
||||
return 404;
|
||||
return 404;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user