Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ok so first of all sorry for a rather poor title, I'll try to make up for it in the description. Secondly, bear in mind I am no sysadmin and I'm a complete noob.
So here's the story: I just setup an EC2 amazon cloud, installed there one of the Ubuntu (10.10 32bit) AMIs, postgresql and java. Then I started tomcat and my j2ee application. All works fine and dandy but the only way I can access my webapp through the browser is by typing in:

And I'd want to be able to do something like:

And then I'd be forwarded to my webapp in the cloud. Where should I look for that? In tomcat xmls? Somewhere in the amazon ec2 configuration?

share|improve this question
I'm not too sure either, but this definitely wont be Tomcat. You need a DNS mapping from your to the EC2 DNS. See and – JoseK Nov 9 '10 at 13:30
and you have to make tomcat bind on port 80 – J-16 SDiZ Nov 9 '10 at 13:40
so I can't tell my DNS provider to bind my domain name to XXX.XXX.XXX.XXX:8080? It has to be an address with no port only the IP? Can't I then setup Apache so it would redirect it somehow to port 8080 as I'm having problems rebinding my application from 8080 to 80 dunno why. – Zenzen Nov 10 '10 at 11:14
up vote 2 down vote accepted

A few words in advance:

Since you are (a selftitled) noob I will just outline the needed steps, since answering all of this in detail would be beyond the scope of this question (and way to much to remember and understand). So I hope I can get you started in asking further questions from here.


Assuming you already own you will need to map it to the Amazon EC2 instance you are using. This requires, that either your provider allows you to control the DNS settings of your IP in detail (in this setup you will need an Elastic IP), or that you've setup your own nameserver.

With Elastic IP

With elastic IP you could setup either your own Nameserver (or the one provided by your provider) to resolve to your EC2 Instance.

Without Elastic IP

Without Elastic IP you will be required to periodically check the IP Adress of the Server (which can be queried via a Webservice) and update your own nameserver according to this IP.


Both setups I lined out would require that you'd read up on DNS. So this would be the first starting point. Both setups are not very complicated to achieve, so it would be a good idea to check with us if you see the questionmarks forming.

share|improve this answer
Great, thanks a bunch! I think this will be enough. – Zenzen Nov 9 '10 at 13:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.