Browse Source

Add missing server_name rule to HTTP redirect block (fixes #160)

pull/162/head
MattIPv4 4 years ago
parent
commit
15b2906128
  1. 2
      src/nginxconfig/generators/conf/website.conf.js

2
src/nginxconfig/generators/conf/website.conf.js

@ -315,6 +315,8 @@ export default (domain, domains, global) => {
const redirectConfig = [];
redirectConfig.push(...httpListen(domain));
redirectConfig.push(['server_name',
`${domain.server.redirectSubdomains.computed ? '.' : ''}${domain.server.domain.computed}`]);
if (domain.https.certType.computed === 'letsEncrypt') {
// Let's encrypt

Loading…
Cancel
Save