2025-01-21, 11:45 PM
(This post was last modified: 2025-01-22, 12:09 AM by BB98. Edited 4 times in total.)
Hey DreadPirate, thanks for the link. I did look at those before posting.
The examples don't really cover what anything in them is there for, and
all make the assumption that I am using SSL, which I am not.
I am thinking this line: "listen [::]:80;" is for IPv6, which I am also not using.
Are the header options mandatory to get it to work?
I threw the pertinent looking lines into my config, and it's still not working.
Forgot to mention the config is in /etc/nginx/sites-available and symlinked into /sites-enabled.
The new config with things added:
The access.log and error.log are both empty,
and I am still getting a "Connection Timed Out" message when I try to connect to the server on port 80.
I can connect using http://10.0.0.222:8096 and http://domain.com:8096
Thanks again.
(Don't mind the above post... I haven't used a forum in 20 years.)
The examples don't really cover what anything in them is there for, and
all make the assumption that I am using SSL, which I am not.
I am thinking this line: "listen [::]:80;" is for IPv6, which I am also not using.
Are the header options mandatory to get it to work?
I threw the pertinent looking lines into my config, and it's still not working.
Forgot to mention the config is in /etc/nginx/sites-available and symlinked into /sites-enabled.
The new config with things added:
Code:
server {
listen 80;
listen [::]:80; #for IPv6?
server_name domain.com; #hostname? domain? IP? Not sure which should be here.
#Am I wrong to assume that without this line, any packets set to this machine would
#Be forwarded to the proxy_pass host, regardless of what they were addressed to?
]
server {
server_name domain.com
client_max_body_size 20M;
location / {
proxy_pass http://localhost:8096;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Protocol $scheme; #What is the difference between these 2 lines?
proxy_set_header X-Forwarded-Host $http_host;
proxy_buffering off;
}
The access.log and error.log are both empty,
and I am still getting a "Connection Timed Out" message when I try to connect to the server on port 80.
I can connect using http://10.0.0.222:8096 and http://domain.com:8096
Thanks again.
(Don't mind the above post... I haven't used a forum in 20 years.)