Skip to content

Commit ba24a96

Browse files
author
thom
committed
Use port variables instead of hardcoded port (Backport of !580)
1 parent 98ba3c4 commit ba24a96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/conf/nginx_vhost.conf.master

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,15 +338,15 @@ server {
338338

339339
<tmpl_loop name="redirects">
340340
server {
341-
listen <tmpl_var name='ip_address'>:80;
341+
listen <tmpl_var name='ip_address'>:<tmpl_var name='http_port'>;
342342
<tmpl_if name='ipv6_enabled'>
343-
listen [<tmpl_var name='ipv6_address'>]:80;
343+
listen [<tmpl_var name='ipv6_address'>]:<tmpl_var name='http_port'>;
344344
</tmpl_if>
345345

346346
<tmpl_if name='ssl_enabled'>
347-
listen <tmpl_var name='ip_address'>:443 ssl;
347+
listen <tmpl_var name='ip_address'>:<tmpl_var name='https_port'> ssl;
348348
<tmpl_if name='ipv6_enabled'>
349-
listen [<tmpl_var name='ipv6_address'>]:443 ssl;
349+
listen [<tmpl_var name='ipv6_address'>]:<tmpl_var name='https_port'> ssl;
350350
</tmpl_if>
351351
ssl_certificate <tmpl_var name='ssl_crt_file'>;
352352
ssl_certificate_key <tmpl_var name='ssl_key_file'>;

0 commit comments

Comments
 (0)