LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-04-2004, 03:36 PM   #1
kumu
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
Virtual hosts refer to the same document root folder


Need some help here. Running Apache on Slackware and both virtual hosts refer to the same document root folder. Any ideas how to fix this?

Here is my VirtualHost entry in my httpd.conf

NameVirtualHost *

DocumentRoot "/var/www/htdocs"

<VirtualHost *>
ServerName site1.servehttp.com
ServerAlias site1.servehttp.com
DocumentRoot /var/www/htdocs/
ErrorLog /var/log/apache/site1.servehttp.com-error_log
TransferLog /var/log/apache/site1.servehttp.com-access_log
</VirtualHost>

<VirtualHost *>
ServerName site2.no-ip.com
ServerAlias site2.no-ip.com
DocumentRoot /var/www/htdocs/site2/"
ErrorLog /var/log/apache/site2.no-ip.com-error_log
TransferLog /var/log/apache/site2.no-ip.com-access_log
</VirtualHost>
 
Old 09-04-2004, 05:46 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Do you have one of these hosts in the main configuration as well? Cause if you do, you can remove one of them so it reads the config file properly.
 
Old 09-04-2004, 07:19 PM   #3
kumu
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Apache

Thanks for the post.
Not sure what you mean by "main configuration". I assume the main configuration for the httpd.conf file. Which part of the file are you talking about?
 
  


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
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 08:44 PM
Linux and Document and Settings Folder Ionmag Linux - Newbie 2 03-10-2005 10:20 PM
WebDav folder NOT under Document Root? Possible? xymian Linux - Networking 0 01-18-2005 04:52 PM
RH9 Apache Virtual Host Default Document jswilson Linux - Newbie 2 01-29-2004 09:27 AM


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

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