CB2 does not disable IPV6 for NGINX standalone in HTTPS section of nginx-vhosts.conf

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
15,366
Location
www.poralix.com
Hello,

2.0.0 (rev: 1536)

CB2 does not disable IPV6 for NGINX standalone in HTTPS section of nginx-vhosts.conf:

Code:
[root@vps conf]# /usr/local/directadmin/directadmin c | grep -m1 '^ipv6=' | cut -d= -f2
0

Code:
[root@vps conf]# ls -1 /usr/local/directadmin/custombuild/*/nginx/conf/nginx-vhosts.conf
/usr/local/directadmin/custombuild/configure/nginx/conf/nginx-vhosts.conf
[root@vps conf]#

The code line 12143
Code:
perl -pi -e 's| listen       \[::1\]:| #listen       \[::1\]:|' ${NGINXCONF}/nginx-vhosts.conf

does not do what it should do, as the template file /usr/local/directadmin/custombuild/configure/nginx/conf/nginx-vhosts.conf has no whitespaces before listen, but tabs under section for https.

Kindly check and fix it.
 
Hm.. I've applied the regex to /usr/local/directadmin/custombuild/configure/nginx/conf/nginx-vhosts.conf and the line has been successfully commented out.
 
It applies to the first server {...} section for HTTP, but it does not apply to the second server {...} section which is for HTTPs.
The first section has whitespaces, the second tabs:

nginx-vhosts.conf.png

CentOS 6.x
 
Back
Top