Find the answer to your Linux question:
Results 1 to 2 of 2
I am new to Linux so I hope I am asking this question in the correct spot! I am setting up two web sites my config file is below. my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    1

    Problem Setting up virtual Server


    I am new to Linux so I hope I am asking this question in the correct spot!
    I am setting up two web sites my config file is below.

    my main site works fine, but when I try to access the second or virtual site with the word josh in it, it brings up the same content as the main website. It should just display a test pase.
    It seam that the DocumentRoot parameter is not working on the second website.

    <VirtualHost *>
    DocumentRoot "/var/www/html/kubicekfamily"
    ServerName www.kubicekfamily.com
    <Directory "/var/www/html/kubicekfamily">
    allow from all
    Options +Indexes
    </Directory>
    </VirtualHost>

    <VirtualHost *:80>
    DocumentRoot "/var/www/html/josh"
    ServerName josh.kubicekfamily.com
    ServerAlias *.kubicekfamily.com
    <Directory "/var/www/html/josh">
    allow from all
    Options +Indexes
    </Directory>
    </VirtualHost>

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    check out the following
    http://www.linuxforums.org/forum/ser...l-hosting.html
    http://httpd.apache.org/docs/2.0/vhosts/name-based.html

    also try the search in the forum and google.

    report back with problems

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •