Can't manage to make my server public #1464
Replies: 3 comments 1 reply
-
You're using the loopback address (127.0.0.1), that means it is only accessible from that host. You need to use either the INADDR_ANY IPv4 address |
Beta Was this translation helpful? Give feedback.
-
I checked for what uses port 80 (I knew Apache was stopped and nginx uninstalled)
I see |
Beta Was this translation helpful? Give feedback.
-
You likely needed to delete the Unit config E.g.
Before reconfiguring to listen on all interfaces (you likely had a bind(2) error in your unit.log about "address already in use"). |
Beta Was this translation helpful? Give feedback.
-
On Ubuntu 24, I can access the server locally (
curl -i 127.0.0.1
does return the index page content) but I cannot access the HTTP protocol and the server's name from outside.These are my open ports in the firewall (there's no profile for Unit, so I just added 80/tcp):
I sent this configuration
using
curl -X PUT --data-binary @unit.config.json my.server:9090/config
(I have port 9090 set up for accessing the API behind the router only)I tried using
*:80
for the listener, but when I try to send it, I getWhat am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions