• 0 Posts
  • 4 Comments
Joined 1 year ago
cake
Cake day: July 8th, 2023

help-circle


  • arvere@lemmy.mltoMildly Infuriating@lemmy.worldThanks Spez!
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    1 year ago

    [-] thunderbox666 « 1 point 2 months ago

    Pretty much any subdomain will go to the nginx server and it will only do something if youve configured that subdomain in the config - everything else just gets ignored, or you can setup a catchall to handle all the unconfigured stuff

    so you will need something like this (might not be exact, been a long time since i had to configure NGINX haha)

    server {
    server_name ha.mydomain.duckdns.org;
    location / {
    proxy_pass http://hostnameOrIP1:port1;
    }
    }
    server {
    server_name nextcloud.mydomain.duckdns.org;
    location / {
    proxy_pass http://hostnameOrIP2: port
    }
    }
    

    an easier way would be to use Nginx Proxy Manager which gives you a nice GUI to add and manage all the sites.