DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 16th, 2012, 08:00 AM
keki keki is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 2 keki User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 19 sec
Reputation Power: 0
Dynamic DNS and reverse proxies: Can this be done?

Here is my situation. I have a LAN at home, behind a regular router.

I have my server on 192.168.0.9, on this I have bind9 running, apache2 on port 80. Tomcat on port 8082 and another tomcat on port 8083.

I have successfully setup bind so that when I am inside my LAN I can enter:

app1.mylan.com Apache will reverse proxy this to app1.mylan.com:8082 and it shows in the browser as app1.mylan.com

Same goes for app2. (i.e. app2.mylan.com -> app2.mylan.com)

However, my router has dynamic dns setup.

How can I reach app1.mylan.com via dynamic dns. I've tried setting up a URL redirect with my DNS provider (even enabling cloaking)

but what happens is that in the browser, the apache server tries to serve up the content as if it was on port 80, and I get a 404 (I see the dyndns address in the page returned).

It's as if the reverse proxy is not working due to the dyn dns.

Can this be done with dynamic dns???

Many thanks,

Kevin.

Reply With Quote
  #2  
Old March 23rd, 2012, 11:51 AM
DonR DonR is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 464 DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 29722 Folding Title: Starter FolderFolding Points: 29722 Folding Title: Starter Folder
Time spent in forums: 2 Weeks 2 Days 1 h 26 m 26 sec
Reputation Power: 216
I've never attempted this before, but, doing some "google research" it looks as if this should be possible by setting up another Vhost for your dynamic dns host/domain and using ProxyPass and ProxyPassReverse to point to your app1 and app2 sites.

Something like this:

Code:
<VirtualHost *:80>
ServerName your.dynamicdns.tld
ProxyPass /app1 http://app1.mylan.com:8082/
ProxyPass /app2 http://app2.mylan.com:8083/
ProxyPassReverse /app1 http://app1.mylan.com:8082/
ProxyPassReverse /app2 http://app2.mylan.com:8083/
</VirtualHost>


this should, in effect, passthru any requests for your dynamicdns host /app1 folder to app1 and app2 folder to app2.

As I said, I've never attempted anything like this , so, I dunno if it'll work or not.
Good Luck.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Dynamic DNS and reverse proxies: Can this be done?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap