Project

General

Profile

Feature #8023 ยป redirect-fqdn.patch

configure server_name in nginx config with host+domain redirect to server_name - Derek Schrock, 10/28/2017 01:58 PM

View differences:

src/etc/inc/system.inc
1591 1591
	server {
1592 1592
		listen 80;
1593 1593
		listen [::]:80;
1594
		return 301 https://\$http_host$redirectport\$request_uri;
1594
		server_name {$config['system']['hostname']}.{$config['system']['domain']};
1595
		return 301 https://\$server_name$redirectport\$request_uri;
1595 1596
	}
1596 1597

  
1597 1598
EOD;
    (1-1/1)