mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 14:26:10 -04:00
Fix server_name spaciness
This commit is contained in:
parent
02844904f0
commit
14ea8d8cdf
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ class NginxConfigurator(common.Plugin):
|
|||
if not matches:
|
||||
# No matches. Create a new vhost with this name in nginx.conf.
|
||||
filep = self.parser.loc["root"]
|
||||
new_block = [['server'], [['server_name', target_name]]]
|
||||
new_block = [['server'], [['\n', 'server_name', ' ', target_name]]]
|
||||
self.parser.add_http_directives(filep, new_block)
|
||||
vhost = obj.VirtualHost(filep, set([]), False, True,
|
||||
set([target_name]), list(new_block[1]))
|
||||
|
|
|
|||
Loading…
Reference in a new issue