Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Use one server_name for all names
Browse files Browse the repository at this point in the history
  • Loading branch information
krissrex committed Dec 1, 2019
1 parent b1f1066 commit e9a2891
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,7 @@ location / {

[template public servernames(site: Site)]
# sitename
server_name: [site.name/];
[for (alternative: String | site.alternativeNames)]
server_name: [alternative/];
[/for]
server_name: [site.name/][for (alternative: String | site.alternativeNames)] [alternative/][/for];
[/template]

[template public error_pages(site: Site)]
Expand Down Expand Up @@ -183,3 +180,4 @@ gzip_types text/plain text/css application/json application/x-javascript text/xm
else site.gzip
endif
/]

Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ mysite.no from site.no:
error_page: 500 502 503 504 "/50x.html"
https_redirect: true
template: php7.2
gzip: true
gzip: true

qore.no
www.qore.no:
port: 3000
log_name: "/var/log/qore.no.access.log"

0 comments on commit e9a2891

Please sign in to comment.