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.
- 04-01-2007 #1Just 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>
- 04-03-2007 #2
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


Reply With Quote
