mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-11 17:40:46 +08:00
Add missing server_name rule to HTTP redirect block (fixes #160)
This commit is contained in:
@@ -315,6 +315,8 @@ export default (domain, domains, global) => {
|
|||||||
const redirectConfig = [];
|
const redirectConfig = [];
|
||||||
|
|
||||||
redirectConfig.push(...httpListen(domain));
|
redirectConfig.push(...httpListen(domain));
|
||||||
|
redirectConfig.push(['server_name',
|
||||||
|
`${domain.server.redirectSubdomains.computed ? '.' : ''}${domain.server.domain.computed}`]);
|
||||||
|
|
||||||
if (domain.https.certType.computed === 'letsEncrypt') {
|
if (domain.https.certType.computed === 'letsEncrypt') {
|
||||||
// Let's encrypt
|
// Let's encrypt
|
||||||
|
Reference in New Issue
Block a user