Skip to content

Specific Port #807

@hyprem

Description

@hyprem

HI

I would like to redirect a specific Port to a Service. I tried to do this via the Streams function in the Proxy Manager but it seems not working.
Here is my Nginx configuration that worked:

server {
# The IP that you forwarded in your router (nginx proxy)
  listen 192.168.XX.XX:7615; # this is not the default_server

# Make site accessible from http://localhost/
 server_name isl.domain.com;

# The internal IP of the VM that host you Apache config
 set $upstream 192.168.XX.XX:7615;

 location / {
 proxy_pass http://$upstream;
 }
}

This was for Port 7615
And this config was for the main proxy Part:

map $http_upgrade $connection_upgrade {
    default upgrade;
    '' close;
}

proxy_buffering off;
proxy_request_buffering off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;

server {
    listen 192.168.XX.XX:80;
    server_name isl.domain.com;

    location / {
        proxy_pass http://192.168.XX.XX:7620;
    }
}

server {
    listen 192.168.XX.XX:443 ssl;
    server_name isl.domain.com www.isl.domain.com;
    ssl_certificate /etc/nginx/ssl/wildcart.cert;
    ssl_certificate_key /etc/nginx/ssl/key.key;

    location / {
        proxy_pass https://192.168.XX.XX:7621;
    }
}

Can anyone help me on achiving this in the Nginx Proxy Manager

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions