Score:0

NginX website to listen on both port 80 and port 8080

cn flag
RDK

I have a recent installation of NginX on a Raspberry Pi. In the sites-available/myserver I have the following:

server {

    listen 80 default_server;
#    listen 8080;
    listen [::]:80 default_server;
...

I want to have this server listening on both port 80 and 8080, but when I uncomment the Listen 8080 line above and restart NginX, the browser request times out. Port 80 requests work fine.

If I change the default_server line to 8080, then browser requests using :8080 also fail.

What am I doing wrong?....RDL

jp flag
check firewalls
in flag
A timeout usually points toward a firewall.
Score:0
cn flag
RDK

Dumb user error, I forgot to update IPTables for port 8080....RDK

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.