MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: Spacedust on 2017-11-24, 22:22:03

Title: Unable to connect to https via IPv6
Post by: Spacedust on 2017-11-24, 22:22:03
Using nginxproxy + httpd24:

Quote
Resolving somedomain.com... 2001:bc8:42bb::1, 62.210.81.xx
Connecting to somedomain.com|2001:bc8:42bb::1|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://somedomain.com/index.php [following]
--2017-11-24 22:35:31--  https://somedomain.com/index.php
Connecting to somedomain.com|2001:bc8:42bb::1|:443... failed: Connection refused.
Connecting to somedomain.com|62.210.81.xx|:443... connected.
Title: Re: Unable to connect to https via IPv6
Post by: Spacedust on 2017-11-24, 22:34:40
I fixed that bug:

Inside /opt/configs/nginx/conf/globals/listen_ssl.conf there is a wrong line:

Quote
listen [::]:433 ssl httpd;

while it should be

Quote
listen [::]:443 ssl httpd;

Same for listen_ssl_back.conf and others:

Quote
listen [::]:8433 ssl httpd;

while it should be:

Quote
listen [::]:8443 ssl httpd;

and the rest of files

After restarting nginx all works perfectly now with https and IPv6.
Title: Re: Unable to connect to https via IPv6
Post by: LotsOfQ on 2017-11-30, 06:28:23
My listen_ssl_back.conf file
Code: [Select]
listen 8433;
listen [::]:8433;

Should I change line 1 also?

Quote
listen 8443 ssl http2;
Title: Re: Unable to connect to https via IPv6
Post by: LotsOfQ on 2017-11-30, 07:09:02
I've just realized that mine said:

Code: [Select]
listen 443 ssl http2;
listen [::]:433 ssl http2;

So it's not httpd but http2, change it to httpd?
Title: Re: Unable to connect to https via IPv6
Post by: Spacedust on 2017-11-30, 12:18:10
I've just realized that mine said:

Code: [Select]
listen 443 ssl http2;
listen [::]:433 ssl http2;

So it's not httpd but http2, change it to httpd?

No change to 443 not 433. You've got httpd because of Apache 2.2, I'm using Apache 2.4.
Title: Re: Unable to connect to https via IPv6
Post by: LotsOfQ on 2017-11-30, 12:51:12
What I meant was this is my original.
Code: [Select]
listen 443 ssl http2;
listen [::]:433 ssl http2;

I noticed yours is httpd. So do I change it to httpd like yours?

About 433, I know it has to be 443 but unclear about httpd and http2.

Also in my listen_ssl_back.conf file:
Code: [Select]
listen 8433;
listen [::]:8433;

Do I just change it to this?
Code: [Select]
listen 8443;
listen [::]:8443;
or
Code: [Select]
listen 8443 ssl http2;
listen [::]:8443 ssl http2;
Title: Re: Unable to connect to https via IPv6
Post by: LotsOfQ on 2017-11-30, 12:52:46
By the way, any chance you can help with this?
https://forum.mratwork.com/kloxo-mr-technical-helps/curl-error-60-peer-certificate-cannot-be-authenticated/