mirror of
https://github.com/thib8956/nginx-proxy
synced 2026-12-03 19:50:14 +00:00
Add support for vhosts.d/defaults file with default vhost options
- Only used if it exists and a vhost-specific one doesn't
This commit is contained in:
1 parent
d07a7d7487
commit
b131b00e19
2 files changed
+9
No files matched your search
@@ -125,6 +125,8 @@ server {
|
||||
|
||||
{{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }}
|
||||
include {{ printf "/etc/nginx/vhost.d/%s" $host }};
|
||||
{{ else if (exists /etc/vhost.d/defaults) }}
|
||||
include /etc/nginx/vhost.d/defaults
|
||||
{{ end }}
|
||||
|
||||
location / {
|
||||
@@ -143,6 +145,8 @@ server {
|
||||
|
||||
{{ if (exists (printf "/etc/nginx/vhost.d/%s" $host)) }}
|
||||
include {{ printf "/etc/nginx/vhost.d/%s" $host }};
|
||||
{{ else if (exists /etc/vhost.d/defaults) }}
|
||||
include /etc/nginx/vhost.d/defaults
|
||||
{{ end }}
|
||||
|
||||
location / {
|
||||
|
||||
Reference in new issue
Block a user