Setting up domain with Apache.

Discussion in 'Apache' started by Whitey, Mar 14, 2009.

  1. #1
    Hey guys, I'm new to this so I need a bit of help.

    I have a dedicated server that has Apache installed. I read up on using VirtualHosts do make my domain point to my site and I tried them but it's not working at all.

    I have this in my httpd.conf file:
    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf
    Code (markup):
    And in the httpd-vhosts.conf file I have this:
    NameVirtualHost *:80
    
    <VirtualHost *:80>
    ServerName www.scrubsonline.org
    ServerAlias scrubsonline.org *.scrubsonline.org
    DocumentRoot /home/www
    </VirtualHost>
    Code (markup):
    I have set my domain up with the DNS to point to my server, and I know that's not the problem. But when I try and browse to scrubsonline.org I get this error:
    The connection to the server was reset while the page was loading.
    Code (markup):
    As you can see for yourself.

    I have restarted httpd, and even my whole server but I'm still getting this error.

    Thanks for any help :D
     
    Whitey, Mar 14, 2009 IP
  2. bsd13

    bsd13 Peon

    Messages:
    168
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you tried putting the vhost information directly into httpd.conf instead of the inherited .conf file? Just to see if it helps.
     
    bsd13, Mar 14, 2009 IP
  3. Whitey

    Whitey Active Member

    Messages:
    1,386
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #3
    I did that before hand and it still gave me the same error :)
     
    Whitey, Mar 14, 2009 IP