Localhost console has "Not a Listen Port"
Posted by: dan40 (---.vc.shawcable.net)
Date: March 28, 2023 04:56AM

Hi, I JUST today got SSL running on my server successfully, BUT, now I have a problem. My sites work, but the Server console says "not a listen port" after each of my Virtualhosts, and in the status section at the bottom it says "Port :443 used for the VirtualHost is not an Apache Listen Port".

Now, when I go to edit the httpd.conf file, to add the following two lines, it breaks my https sites.

Listen 0.0.0.0:443
Listen [::0]:443

What do I do now? Everything is working, except for these red status messages in the console page. I also have each of my sites listed in my httpd-vhosts.conf file srtarting off with <VirtualHost *:443>. If I change this back to *:80 it breaks my sites again.

Any help would be appreciated!

Options: ReplyQuote
Re: Localhost console has "Not a Listen Port"
Posted by: Otomatic (Moderator)
Date: March 28, 2023 08:46AM

Hi,

See thread [forum.wampserver.com]

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Localhost console has "Not a Listen Port"
Posted by: dan40 (---.vc.shawcable.net)
Date: March 30, 2023 05:22AM

I have followed this to the letter, but I get a message saying "Your connection isn't private" and https is crossed out in red letters in my browser. It says the Cert is invalid but again I followed the directions to the letter and was able to generate the .crt and the .key.

I'm just about to give up and go back to IIS, at least it was working under IIS.

Why isn't there a checkbox by the project names on the Localhost page saying "Secure site" and then you could select it and it would do all of this for you instead of giving people the runaround to get their sites secured? That would make so much more sense!

When I follow through with the link to the page under the error message, I get "Forbidden, You don't have permission to access this resource." How do I fix that?



Edited 1 time(s). Last edit at 03/30/2023 05:25AM by dan40.

Options: ReplyQuote
Re: Localhost console has "Not a Listen Port"
Posted by: Otomatic (Moderator)
Date: March 30, 2023 09:11AM

Hi,

> "Your connection isn't private"

It is a message because the certificate is self-signed. You have to override it and depending on the browser, the procedure is not the same.

> Why isn't there a checkbox by the project names on the Localhost page saying "Secure site"
You have to have something to do, it allows you to learn and understand; moreover, there too, the courses are free!

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.