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 am not exactly sure what I am doing wrong. I have been able to get subdomains to work on my server, running Ubuntu 10.04 Server. I am running like a Ubuntu recommends with the VirtualHost information in the sites-available/ folder. It was confusing at first how it worked, but after playing with it for over 8 hours things are making more sense.

My biggest problem I feel is I am missing something basic. I just don't know what it is. Here are my virtual host files.


<VirtualHost *:80>
    DocumentRoot /srv/www/

    MonoServerPath "/usr/bin/mod-mono-server2"
    MonoDebug true
    MonoSetEnv MONO_IOMAP=all
    MonoApplications "/:/srv/www/"
    <Location "/">
            Allow from all
            Order allow,deny
            SetHandler mono
            SetOutputFilter DEFLATE
            SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
    <IfModule mod_deflate.c>
            AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript


<VirtualHost *:80>
    DocumentRoot /srv/www/


<VirtualHost *:80>
    DocumentRoot /srv/www/languagesamurai/

The current problem I come up against is if I am trying to add a domain that isn't a subdomain it shows what is should be on However, works too.

This is a real confusing problem and lack of knowledge about Apache on my part is a real hamper.

Any ideas would be greatly appreciated. If more information is needed I can provide that too.

share|improve this question
Have you enabled the second site? sudo a2ensite languagesamurai – LukeR Sep 26 '10 at 23:56
Thanks I forgot to activate the site. Wow I feel dumb. – percent20 Sep 27 '10 at 0:08
@LukeR use answer section so that percent20 can accept it – alexus Dec 5 '14 at 20:55

I forgot to activate the site with:

sudo a2ensite languagesamurai 
share|improve this answer
this should not be an answer, or should contain more then that... – alexus Dec 5 '14 at 20: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.