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

Hi all i want to ask how is it possible to serve multiple sites hosted in my computer with apache through dyndns.I am using ubuntu 10.04 and i had setup a dyndns domain as of .Also i had setup a virtual host with the below configuration

<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /home/pavlos/Temp/websites/drupal-site/htdocs
<Directory />
Options FollowSymLinks
        AllowOverride all
<Directory /home/pavlos/Temp/websites/drupal-site/htdocs/>
Options FollowSymLinks 
        AllowOverride all
        Order allow,deny
        allow from all

ScriptAlias /cgi-bin/ /home/pavlos/Temp/websites/drupal-site/cgi-bin/
<Location /cgi-bin>
            Options +ExecCGI

    # Logfiles
    ErrorLog  /home/pavlos/Temp/websites/drupal-site/logs/error.log
    CustomLog /home/pavlos/Temp/websites/drupal-site/logs/access.log combined


My /etc/hosts file is: localhost medic

Now when i go to outside of my lani see the default site of apache.Any suggestions?

share|improve this question

You would want to have domains like: and set up with a CNAME to and the same with and

That way, when the person requests, the Host header passed to apache is correct, rather than you seeing

You can do the same with an A record, but, a CNAME would not require you to configure the domains with an IP address, and when your dynamic DNS address is updated, your other two domains wouldn't need any DNS changes.

share|improve this answer

Your Answer


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