httpd.config file on VPS fetching files from dirreferent directory.

Discussion in 'Programming' started by dura_killer, Feb 3, 2009.

  1. #1
    I have configured my httpd.config file with the following code
    <VirtualHost *:80>
        ServerAdmin contact@vedlo.com
        DocumentRoot /www/vedlo
        ServerName *.vedlo.com
        ErrorLog logs/vedlo.com-error_log
       CustomLog logs/vedlo.com-access_log common
    </VirtualHost>
    Code (markup):
    The www.vedlo.com fetches file from 'vedlo' directory on my VPS but 'computers.vedlo.com' fetches files from other directory which is meant for other domain.
    How can I solve this problem?
     
    dura_killer, Feb 3, 2009 IP
  2. supportresort

    supportresort Member

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    48
    #2
    I would suggest reviewing the following article which discusses wildcard hosting:

    http://www.debian-administration.org/articles/358

    If you only require the computers.vedlo.com subdomain however then your apache configuration could just be the following:

    ServerName www.vedlo.com
    ServerAlias computers.vedlo.com
     
    supportresort, Feb 3, 2009 IP