mehov / debian-automation

A few scripts to automate most common Debian setups
0 stars 0 forks source link

if no alias added, do not create a nginx `server` section for it #62

Open mehov opened 7 years ago

mehov commented 7 years ago

https://github.com/mehov/debian-automation/blob/master/webserver.sh#L546

mehov commented 6 years ago

Otherwise throws

nginx: [emerg] invalid number of arguments in "server_name" directive

mehov commented 6 years ago

also, if not adding aliases at all (i.e. just the domain name and the suggested WWW), server_name won't contain the WWW, so the LE validation will fail