HTTP Redirect using ProxyPass

aarondyck
Posts: 27
Joined: Sat Mar 30, 2013 1:15 pm

HTTP Redirect using ProxyPass

Postby aarondyck » Fri Oct 16, 2020 9:54 am

I have a number of containerised apps on my HDA that use ProxyPass to accept input on HTTP Port 80 or HTTPS Port 443 and redirect to the correct internal port, as is the norm with Amahi, but I would like to do some additional customisation.

Since my system is behind a residential gateway with only one public IP Address I have routed all external HTTPS traffic to my HDA using my personal domain (which matches the Amahi domain, and with split DNS I am able to access the services both inside and outside my network). I have a device on my network that I would like to be able to access with a web browser from the Internet using the same ports, but my residential router lacks the smarts to do this, and I was hoping Amahi would do the trick.

Basically what I'd like to do is have the URL abc.mydomain.com resolve to an internal address on my network that isn't the HDA, in a similar fashion to how sickbeard.mydomain.com resolves to an internal address on my network that is the HDA, but has a different port. I suspect that this is possible, but I just don't know how it's done. Any suggestions would be appreciated.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: HTTP Redirect using ProxyPass

Postby bigfoot65 » Fri Oct 16, 2020 5:41 pm

Take a look at hosting a web site in the wiki.

BTW, there is a lot of solutions and helpful tips in the Amahi wiki that might be beneficial.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

aarondyck
Posts: 27
Joined: Sat Mar 30, 2013 1:15 pm

Re: HTTP Redirect using ProxyPass

Postby aarondyck » Mon Oct 19, 2020 1:13 pm

The Hosting a Web Site portion of the Wiki talks about hosting something on the HDA - I'm looking to have the HDA redirect requests for a specific FQDN to a different device on my network (i.e. server.mydomain.com reaches the HDA then redirects to 192.168.1.20, while the HDA is 192.168.1.10). I'm having a hard time finding any documentation to support this.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: HTTP Redirect using ProxyPass

Postby bigfoot65 » Mon Oct 19, 2020 2:03 pm

Ah I see.

We don't have anything like that that I am aware.

There may be some guidance on using a proxy in the Wiki that might help.

Maybe look on the internet for something similar that would work with Fedora.

Sorry I can't be much help.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

aarondyck
Posts: 27
Joined: Sat Mar 30, 2013 1:15 pm

Re: HTTP Redirect using ProxyPass

Postby aarondyck » Fri Oct 23, 2020 5:47 am

Thanks, I haven't been able to figure it out yet myself, and was hoping to have some luck here.

I'll keep trying, and if I figure something out I'll post my solution.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: HTTP Redirect using ProxyPass

Postby bigfoot65 » Fri Oct 23, 2020 6:12 am

Sounds good.

I am sure there's something out there on the internet.

Maybe you can build a tutorial in the wiki once you figure it out.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 10 guests