This commit is contained in:
BoHung Chiu 2021-12-30 15:49:56 +08:00
parent 731138f556
commit e6ca9c468d
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class SiteConstruct
end
domain_name_str = self.domain_name
if default_domain.present?
domain_name_str = ([default_domain] + (domain_name_str.split(/\s+/) - [default_domain])).join(" ")
domain_name_str = ((domain_name_str.split(/\s+/) - [default_domain]) + [default_domain]).join(" ")
end
if old_server_block.present?
new_server_block = old_server_block.gsub(/(listen\s+)[^;]+/){|ff| "#{$1}#{port_text}"}