bah1976 Posted December 17, 2015 Share Posted December 17, 2015 In a perfect world, there would be such thing as DNS for ports. i.e., I could go to http://plex.mydomain.com and get redirected to 192.168.1.1:32400, or http://deluge.mydomain.com and get redirected to 192.168.1.1:8112. I know you can hit all these from the dockers page - but how do you guys handle this for the non-techies in the family who have no business being in the unraid admin panel? I used to have a "portal" i.e. static html page that you could get to via http://home.mydomain.com that had all the port links on it, but that was on a Xen VM. I can't even have a http host docker because it would have to be on something different than port 80 - and I want this to be seamless to the house.. Is there such thing that would let me: 1) host a web server docker on a different IP than my host. I think Docker can somehow do that via host networking and other bindings, but I don't know if unRaid can handle it. 2) do some php magic that when I browse to plex.mydomain.com:80 on that IP, it would redirect to plex.mydomain.com:32400 Any thoughts? Quote Link to comment
JonathanM Posted December 17, 2015 Share Posted December 17, 2015 In a perfect world, there would be such thing as DNS for ports. There is, and I use it. Easydns allows port entry in their url redirection. It doesn't explicitly state it on the tutorial page, but it works just fine. https://fusion.easydns.com/index.php?/Knowledgebase/Article/View/68/7/url-vs-stealth-forwarding Quote Link to comment
PCRx Posted December 17, 2015 Share Posted December 17, 2015 Also you might look into a reverse proxy. There are dockers available for unraid which provide that ability. Or you can use any number of web based services. Quote Link to comment
bah1976 Posted December 17, 2015 Author Share Posted December 17, 2015 Interesting. I think I can do that redirection through bluehost too. But that will end up with me redirecting "on the line" to an internal IP/port. Should be ok - it would only actually work from inside my network, but it relies on outside services to function. And then there's the exception - there are a couple where it'd be handy to redirect differently based on external or internal connections. Anybody set up this as an internally hosted DNS service? Quote Link to comment
bah1976 Posted December 17, 2015 Author Share Posted December 17, 2015 And then I browse down the forum topic list and see this.. http://lime-technology.com/forum/index.php?topic=44706.0 Quote Link to comment
bah1976 Posted December 17, 2015 Author Share Posted December 17, 2015 Is there anyway to add virtual hosts to stock unraid emhttp so it could do the redirection locally? Does that question even make sense? Quote Link to comment
plupien79 Posted December 17, 2015 Share Posted December 17, 2015 I've been in your shoes before. What you want is a reverse proxy. Most current webservers have this ability. Also, you can make the reverse proxy do redirects to port 443 and handle all the SSL work. Sophos UTM Home Router has a built in reverse proxy and that would control access from the router. Quote Link to comment
bah1976 Posted December 17, 2015 Author Share Posted December 17, 2015 It looks like my RouterOS will do that.. http://wiki.mikrotik.com/wiki/Multiple_Web_Servers Now to find the time to mess with it.. Thanks everybody. Quote Link to comment
itimpi Posted December 17, 2015 Share Posted December 17, 2015 You can put the unRAID GUI on a different port to port 80 (using the -p parameter in the go file). Would that help? Quote Link to comment
bah1976 Posted December 17, 2015 Author Share Posted December 17, 2015 It would indeed - thanks. Right now it's this # Start the Management Utility /usr/local/sbin/emhttp would that go to # Start the Management Utility /usr/local/sbin/emhttp -p 8000 Can I restart emhttp without rebooting the whole array? Quote Link to comment
plupien79 Posted December 17, 2015 Share Posted December 17, 2015 No emhttp doesn't work like that. You'll need to do a proper reboot. Quote Link to comment
aptalca Posted December 18, 2015 Share Posted December 18, 2015 In a perfect world, there would be such thing as DNS for ports. i.e., I could go to http://plex.mydomain.com and get redirected to 192.168.1.1:32400, or http://deluge.mydomain.com and get redirected to 192.168.1.1:8112. I know you can hit all these from the dockers page - but how do you guys handle this for the non-techies in the family who have no business being in the unraid admin panel? I used to have a "portal" i.e. static html page that you could get to via http://home.mydomain.com that had all the port links on it, but that was on a Xen VM. I can't even have a http host docker because it would have to be on something different than port 80 - and I want this to be seamless to the house.. Is there such thing that would let me: 1) host a web server docker on a different IP than my host. I think Docker can somehow do that via host networking and other bindings, but I don't know if unRaid can handle it. 2) do some php magic that when I browse to plex.mydomain.com:80 on that IP, it would redirect to plex.mydomain.com:32400 Any thoughts? for lan only, use a dns server to create forwards. For outside access to your services, there are 2 good options: 1) Reverse proxy as mentioned above. Setting up is not that straightforward, but works really well for the end user once it is set up. I use nginx container as the reverse proxy. mydomain.com/sab goes to sabnzbd and mydomain.com/cp goes to couchpotato, etc. 2a) Your domain name provider may already support advanced dns forwarding My provider of choice is dynadot. I can set up different subdomain forwards including to different ports. For instance, dynadot can forward cp.mydomain.com to homeserver:5000 and forward sab.mydomain.com to homeserver:8000 etc. (You can use dynamic dns address like from duckdns for the homeserver address if you don't have a static IP) 2b) Or your hosting provider may allow that. I use hostgator and they also allow for forwarding subdomains to different IP:port combos Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.