Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 10:16:29

Author Topic: Unable to connect to https via IPv6  (Read 8678 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Unable to connect to https via IPv6
« 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.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Unable to connect to https via IPv6
« Reply #1 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.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Unable to connect to https via IPv6
« Reply #2 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;

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Unable to connect to https via IPv6
« Reply #3 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?

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Unable to connect to https via IPv6
« Reply #4 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.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Unable to connect to https via IPv6
« Reply #5 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;

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.044 seconds with 22 queries.

web stats analysis