Welcome! Log In Create A New Profile

Advanced

Ubuntu with multiple webservers and 1 domain

Posted by sthopeless 
Ubuntu with multiple webservers and 1 domain
March 24, 2018 12:23PM
Hello everyone,recently I had to migrate my smarthome project from my Raspberry Pi 3 and started using my PC running Ubuntu server with Docker to run my webservers (portainer, gogs, transmission, sonarr, privatebin for example) and Nginx to forward everything to HTTPS to www.myDomain.com:{ServicePort}.

So I access my services internally with https://Ubuntu.IP:{NginxHttpsPort} externally https://myDomain.com:{NginxHttpsPort}

Until here works as it should!

Now I wanted to 'stop' using the ports and use for example:
https://myDomain.com <<=== Portainer

https://myDomain.com/gogs <<=== Gogs

https://myDomain.com/privatebin <<=== PrivateBin

I have a template of my Nginx attempt at https://github.com/Sthopeless/HA-Playground/tree/master/Nginx

The https://myDomain.com works but when I try https://myDomain/something goes to a blank page and if refreshed returns to https://myDomain.com
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 72
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready