Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why I need multiple forwards so my domain points to my application

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am hosting a struts based website on my Linux machine on Tomcat on port 8080. I have defined virtual server on my router and expose port 9999 and foward it to my linux box. So when someone enters http://my.ext.ip.address:9999/myapp in browser, it is forwarded to my linux machine on port 8080 to application named- myapp.

As I use dsl and don't have static IP, I have to use dynamic dns- to keep my current external IP up-to-date on name server.

I have purchased a domain name and I forward it to dynamic dns1.

All of this setup is working fine with out any problem.


But from outside one has to enter- http://www.mydomain.com:9999/myapp to reach to my application. To avoid this I use one more dynamic dns2 host (as they are anyway free) to redirect one more time so when one enters
http://www.mydomain.com - they reach to my application. This second dynamic dns2 is kept current by my router automatically.


My question is why have these multiple redirections? How can I simplify it so that nameserver itself will redirect it to correct port and application?
 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This has nothing to do with Struts. It is because you have a dynamic IP. Dynamic IPs are not meant for hosting.
 
Sanjay Virkar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Chris Boldon:
This has nothing to do with Struts. It is because you have a dynamic IP. Dynamic IPs are not meant for hosting.



Dynamic IP and inability to host website issue has already been resolved by using dynamic dns and forwarding to one more dynamic dns.

And you are right, this may not be Struts issue but could be server.xml issue where I can make my application default app so if I don't provide port number and application name in browser, request is still routed to my application
 
Chris Boldon
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Still not a Struts issue.

Modjk may be what you're looking for though. JK mount the app.
 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic