LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2005, 02:53 AM   #1
eckertc1
Member
 
Registered: Feb 2005
Posts: 57

Rep: Reputation: 15
Name based Virtual Servers


Help, ive fallen and i cant get up. this virtual server stuff is gonna land me in an early grave

the problem is that i have 2 sites set up with two virtual servers on my apache 2.0 server. all seemed well at first, but then i tested the configuration out and found out differently.

using the www.mysite1.com address brings me to the correct site. WOOT!

using the www.mysite2.com address brings me to mysite1. BOO!

i have been over hundreds of websites looking for a solution to this problem. PLZ someone help me out here. Below is my config file for the virtual server section:

NameVirtualHost *

<VirtualHost *>
DocumentRoot "/var/www/html/websites/mysite1"
ServerName www.mysite1.com
</Directory "/var/www/html/websites/mysite1">
allow from all
Options +Indexes
</Directory>
ServerAlias mysite1.com
DirectoryIndex Index index.html index.htm
</VirtualHost>

<VirtualHost *>
DocumentRoot "/var/www/html/websites/mysite2"
ServerName www.mysite2.com
</Directory "/var/www/html/websites/mysite2">
allow from all
Options +Indexes
</Directory>
ServerAlias mysite2.com
DirectoryIndex Index index.html index.htm
</VirtualHost>

any input here would be very helpfull, im at my witts end
 
Old 02-28-2005, 02:57 AM   #2
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
Think this:

Quote:
</Directory "/var/www/html/websites/mysite1">
should not have a slash at the start

don't know if that is your problem, though
hamish
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestions for web based file servers Munix Linux - Software 2 01-17-2005 05:48 PM
Apache + virtual servers yussef Linux - Software 0 01-08-2005 12:05 PM
apache virtual servers granny Linux - Networking 3 09-10-2003 10:42 PM
Virtual Name Servers fatcpu Linux - Networking 3 12-20-2002 03:21 AM
More on Virtual Name Servers fatcpu Linux - Networking 2 12-04-2002 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration