User Tools

Site Tools


proxy_pass_port

Simply redirect a domain to a port. For example, if you wanted to visit: lukeshirnia.co.uk:5050 you can use a sub domain with proxy pass do this on local host.

server {
        listen 80;
        server_name example.lukeshirnia.co.uk www.example.lukeshirnia.co.uk;

        location / {
                proxy_pass http://localhost:5050;

}
}

proxy_pass_port.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki