Ubuntu 22.04 Apache2 listening on localhost on port 80 not listening from internet on port 80
https://askubuntu.com/questions/1537653/ubuntu-22-04-apache2-listening-on-localhost-on-port-80-not-listening-from-intern
I'm trying to resurrect my Apache2 webserver on Ubuntu 22.04 Jammy, and I've troubleshot just about everything, but Apache2 won't listen to traffic from the internet on port 80 (or 443) but responds properly to traffic from locahost on port 80 (and 443).
Here are two examples of the problem:
From localhost:
user@webserver:~$ telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
HEAD http://www.webserver.com/ HTTP/1.0
HTTP/1.1 200 OK
Date: Thu, 09 Jan 2025 12:38:25 GMT
Server: Apache/2.4.52 (Ubuntu)
Last-Modified: Fri, 17 Jun 2011 03:27:18 GMT
ETag: "2d-4a5dff6791e3b"
Accept-Ranges: bytes
Content-Length: 45
Connection: close
Content-Type: text/html
Connection closed by foreign host.
From other desktop PC on internet:
user@desktop:~$ telnet www.webserver.com 80
Trying 1.1.1.1...
Connected to webserver.com.
Escape character is '^]'.
HEAD http://www.webserver.com/ HTTP/1.0
Connection closed by foreign host.
(I sanitized the user, FQDN, and IP information.)
I'm clearly telnetting in, telnet is clearly connecting (so there appears to be no firewall or similar port-blocking problem), but the webserver just isn't listening from the internet while it listens from localhost.
I may edit this post to include any config files that are relevant.
EDIT 1:
The server is connected via ethernet to a Spectrum router; the wired connection for the router has been placed in a DMZ. I am able to ssh into the server via Ubuntu's terminal on the desktop over port 22, sftp into to server using Filezilla on the desktop over port 22, and VNC into the server from my desktop using TigerVNC on the server and Remmina on the desktop over ports 5901-5903. It could be Spectrum is blocking traffic on ports 80 and 443 but not the other ports?
user@webserver:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 10:78:d2:cd:4a:5a brd ff:ff:ff:ff:ff:ff
altname eno1
altname enp0s25
inet 192.168.1.15/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0
valid_lft 23450sec preferred_lft 23450sec
inet6 2603:6000:b100:1d5::1760/128 scope global dynamic noprefixroute
valid_lft 585050sec preferred_lft 585050sec
inet6 2603:6000:b100:1d5:c6a5:4683:2f99:cc23/64 scope global temporary dynamic
valid_lft 585050sec preferred_lft 66588sec
inet6 2603:6000:b100:1d5:1278:d2ff:fecd:4a5a/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 604769sec preferred_lft 604769sec
inet6 fe80::1278:d2ff:fecd:4a5a/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 68:a3:c4:43:a6:b7 brd ff:ff:ff:ff:ff:ff
altname wlp2s0
4: gpd0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 500
link/none
Any assistance is appreciated.