Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)OJ
Posts
1
Comments
2
Joined
2 yr. ago
Homelab @selfhosted.forum
ORA2J @alien.top
BOT

Currently trying to get my head wrapped around NGINX. What do i do wrong?

I've been trying to learn NGINX for a bit now. I tried to make a simple configuration to redirect a subdomain to a specific IP:PORT. However, I fail to manage to make it work properly. Currently, NGINX seems to redirect every request coming into the server to that specific IP:PORT, while also returning the internal IP of the server instead of the proper domain name.

Here's the config :

worker_processes 1;

events {
worker_connections 1024;
}

http {
server {
listen 80;
server_name service.domain.info;

location / {
proxy_pass http://192.168.1.55:81;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

server {
listen 443 ssl;
server_name service.domain.info;
proxy_send_timeout 330s;
proxy_read_timeout 330s;
`ssl_certificate c:/folder/