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

Hey guys I just got server space on linode and am trying to set up just a simple web hosting and backend for an iPhone app. I plan on using Django for all of it but have no experience in setting up the actual server. I followed the linodes guides and helps for setting it up but must be missing something as I can't for the life of me get it working. I am trying to get the domain name and edited the /etc/hosts as such:       localhost.localdomain   localhost
my.ip.add.ress  mrboom

I have installed apache2 and am using ubuntu 11. I made a file called in /etc/apache2/sites-available and added it to apache. it looks like this:

<VirtualHost my.ip.add.ress:80>
 DocumentRoot /srv/www/buddybomb/
 ErrorLog /srv/www/logs/buddybomb/error.log
 CustomLog /srv/www/logs/buddybomb/access.log combined
 PythonPath "['/srv/www/buddybomb/push'] + sys.path"
 WSGIScriptAlias / /srv/www/buddybomb/push/django.wsgi

<Location "/buddybomb/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE buddybomb.settings
    PythonOption django.root /buddybomb
    PythonDebug On

I have installed all the python/django libraries required there is just something that i'm missing connecting everything.

I ran the command apache2ctl -S and that put out

 [error] (EAI 2)Name or service not known: Could not resolve host name mybuddybomb -- ignoring!
VirtualHost configuration:       is a NameVirtualHost
     default server (/etc/apache2/sites-enabled/
     port 80 namevhost (/etc/apache2/sites-enabled/
Syntax OK

Is there something I need to do in the linode console? or with apache? I have no experience in setting these things up and would really like some help setting it up.

The thing I'm confused about is I can enter the ip address in a browser and I know that apache is running and returns a page that the url isn't available but if I put it says server not found. How do I connect the two?

Let me know if there is anymore info needed. I don't know!

share|improve this question

migrated from Sep 18 '11 at 5:21

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

1) It doesn't look like you have in your hosts. It should read

my.ip.add.ress isn't listed in your virtual host configuration.

2) Is my.ip.add.ress listed in the NameVirtualHost in your apache config? If so, you can just have <VirtualHost *:80>.

3) What address comes up when you do host

4) Is the VirtualHost clause of your config closed? I'm guessing yes since your configuration validates.

share|improve this answer

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.