Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I purchased an amazon ec2 instance, where I configured a webserver. Then I purchased Route53 to handle dns, where I set my custom domain to point on the Elastic IP.

The fact is that when typing my domain name the server web answers using the domain!!

I'm running varnish in front of apache2.

How can I fix that?

share|improve this question
What do you mean "the web server answers using the domain"? Please edit your question and tell us exactly what actions you're performing and what results you're seeing. – EEAA Sep 21 '12 at 2:23
Also, please edit the title. I'd edit it to be something like "How can I make an EC2 instance report a custom hostname?" but I'm not certain that's what you were asking. – Dave Forgac Sep 21 '12 at 2:58
up vote 1 down vote accepted

Based on your question I'm guessing one of two things is happening:

  1. You're seeing Apache's default server banner with the hostname included. You need to update the system's hostname or specify something in the httpd.conf. This is not specific to AWS.
  2. If not 1, then you're probably referring to the reverse-DNS of your server's IP resolving to an AWS hostname. If you need valid reverse-DNS with your custom domain you'll need an Elastic IP as noted here:

In any case we need to know what you mean by "the server web answers using the domain" in order to answer your question.

share|improve this answer
Yeah it was an apache configuration issue. – CodeShining Sep 21 '12 at 12:56

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.