Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

Redirect subdomain to internal IP and Port

$
0
0

Hello,

I'm looking to redirect different subdomains to different ports on my server but I'm running into a bit of an issue with the port 80 to 443 automatic redirect.

 

What I'm trying to acheive is:

    sabnzbd.xxxxx.com -> 192.168.1.20:8080

    sickbeard.xxxxxx.com -> 192.168.1.20:8081

    home.xxxxxx.com -> 192.168.1.20:80 / 443 (was working with port forward, now disabled)

    home.xxxx.com:8443 -> 192.168.1.1:8443 (working with port forward)

 

I had all of this working with dd-wrt by running squid on a server but it seems that everything that goes to port 80 in edgeos gets redirected to 443 first and then 8443 if there's no port forward for 443.

 

However, ideally I would like to have all of this set up directly on edgerouter. I've tried following these directions using pound on the edgerouter but everything gets redirected to 443 (the webserver).

I've also tried adding

    $HTTP["host"] =~ "sickbeard" {
        proxy.server = ( "" => ( "SickBeard" => ( "host" => "192.168.1.20", "port" => 8080 ) ) )
    }

but the same thing happens, any hostname that comes into the router is redirected to port 443.

 

Does anyone have any suggestions, preferably without requiring a separate VM running?

 


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>