LinuxQuestions.org
Review your favorite Linux distribution.
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-18-2003, 07:52 PM   #1
Thinkgeekness
Member
 
Registered: Nov 2002
Posts: 81

Rep: Reputation: 15
DocumentRoot error message


I have Apache 1.3 (on RHL 7.3) and I am setting up name based virtual hosting and so far it looks like this:

ServerName domain.com
DocumentRoot /home/httpd/domain
BindAddress *

NameVirtualHost *

<VirtualHost *>
ServerName domain.com
DocumentRoot /home/httpd/domain
</VirtualHost>
<VirtualHost *>
ServerName domain2.com
DocumentRoot /home/httpd/domain2
</VirtualHost>

When I try to start apache, I get this error message:

DocumentRoot takes one Argument, Root directory of the document tree

How do I fix this?

Thanks
 
Old 02-18-2003, 08:56 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Lokks to me like you're pointing to 'domain.com' twice. Once in the general setup and once in the VirtualHost.
 
Old 02-18-2003, 09:11 PM   #3
Thinkgeekness
Member
 
Registered: Nov 2002
Posts: 81

Original Poster
Rep: Reputation: 15
I just took the DocumentRoot off of the first virtual host (the main domain) and it still says it. In order for me to get so that it doesnt give me the error, I have to delete it on both of the virtual hosts. But then it wont know where to point domain2.com to.
 
Old 02-18-2003, 09:59 PM   #4
Thinkgeekness
Member
 
Registered: Nov 2002
Posts: 81

Original Poster
Rep: Reputation: 15
It is working, it turns out I need the " in front and end of the directory. Ex. DocumentRoot "/home/httpd/domain". But now I have ran into a different problem. For an example, if I have an about us on domain2, it goes to the about us on the main domain. But it shows the address as: http://domain2.com/aboutus. If I go to www.domain2.com/aboutus it goes to http://domain2.com/aboutus and the about us is the one for the main domain. If you have any questions about this or I didnt work it right, go ahead and ask. But any suggestions towards fixing this?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Where is DocumentRoot? tfc MEPIS 3 06-02-2005 02:41 AM
QMAIL error:554 Transaction failed: message format error mpk25 Linux - Software 1 10-15-2004 01:53 PM
DocumentRoot redhatlover Red Hat 3 04-27-2004 01:45 PM
error message when run MRTG: SNMP error zhgalaxy Linux - Newbie 0 02-18-2004 01:08 PM
why this error message is appear in xsession-error file? eye Red Hat 0 10-21-2003 08:51 AM


All times are GMT -5. The time now is 06:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration