Re: Apache2 fails to listen on open port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the suggestions. Here are the results:

dnessett@Mount:/etc/apache2$ grep -r Listen
sites-available/000-default.conf:Listen localhost:4443 ssl;
ports.conf:#Listen 80
ports.conf: Listen 4443
ports.conf: Listen 443
dnessett@Mount:/etc/apache2$

The ports.conf entry with Listen 443 is for mod_gnutls. Might this be the problem? I am not familiar with mod_gnutls, but it does not appear in any other active configuration file:

dnessett@Mount:/etc/apache2$ cat ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf

#Listen 80

<IfModule ssl_module>
Listen 4443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>

dnessett@Mount:/etc/apache2$ grep -r gnutls
ports.conf:<IfModule mod_gnutls.c>
dnessett@Mount:/etc/apache2$

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

The apache error log does not give much information on this problem:

dnessett@Mount:/var/log/apache2$ cat error.log.1
[Wed Dec 14 14:32:34.057530 2022] [mpm_event:notice] [pid 1085:tid 3082604736] AH00489: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Dec 14 14:32:34.057692 2022] [core:notice] [pid 1085:tid 3082604736] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 14 17:31:53.108447 2022] [mpm_event:notice] [pid 1085:tid 3082604736] AH00491: caught SIGTERM, shutting down
[Wed Dec 14 22:16:33.935138 2022] [mpm_event:notice] [pid 1059:tid 3082719424] AH00489: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Dec 14 22:16:34.030023 2022] [core:notice] [pid 1059:tid 3082719424] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 14 22:18:39.347403 2022] [mpm_event:notice] [pid 1059:tid 3082719424] AH00491: caught SIGTERM, shutting down
dnessett@Mount:/var/log/apache2$

There is a semicolon after the Listen localhost:4443. I was following the instructions given in the sslh installation guide: https://ostechnix.com/sslh-share-port-https-ssh/

I have changed the references to localhost in the one Listen to 127.0.0.1, as you suggest.


On Dec 15, 2022, at 5:56 PM, Frank Gingras <thumbs@xxxxxxxxxx> wrote:

Grep every single config file (recursively) for the Listen directive.

On Thu, Dec 15, 2022 at 7:54 PM Daniel Ferradal <dferradal@xxxxxxxxxx> wrote:
What does the apache error log say (not systemd)?

Also, am I seeing right? you specified "Listen localhost:4443 ssl;"
with a semicolon at the end?

Also specify it with ips , don't use names with Listen directive.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux