LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-04-2002, 11:15 PM   #1
bkeating
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Open/FreeBSD, Gentoo, SuSE
Posts: 511

Rep: Reputation: 38
Apache Virtual Server - 01


www.teov.org is the main address here at home but I would like www.loudhead.org to by managed by the same machine. I would like to host the files within; /home/bkeating/lh/

this is what i got in the /etc/httpd/conf/Vhosts.conf file:


NameVirtualHost loudhead.org
<VirtualHost *>
ServerName www.loudhead.org
DocumentRoot /home/bkeating/lh
</VirtualHost>


and

www.loudhead.org check it out for yourself. it's b0rked what am I doing wrong?
 
Old 12-04-2002, 11:47 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
NameVirtualHost www.teov.org:80

<VirtualHost www.teov.org:80>
ServerName www.teov.org
DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost www.loudhead.org:80>
ServerName www.loudhead.org
DocumentRoot /home/bkeating/lh
</VirtualHost>

Last edited by DavidPhillips; 12-04-2002 at 11:54 PM.
 
Old 12-04-2002, 11:52 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I think the key to the problem is that everything in your file must be a virtualhost

also the first one in the list should be the default, which will be used if unmatched by any others.

the :80 is used so there is no conflict with the port 443 virtualhosts that are specified in /etc/httpd/conf.d/ssl.conf
 
Old 12-04-2002, 11:55 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you could also add :80 to your servername if you want, this is shown on the error pages
 
Old 12-04-2002, 11:57 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you may want one for loudhead.org too, like this



<VirtualHost www.loudhead.org:80>
ServerName www.loudhead.org
DocumentRoot /home/bkeating/lh
</VirtualHost>
<VirtualHost loudhead.org:80>
ServerName loudhead.org
DocumentRoot /home/bkeating/lh
</VirtualHost>


or if the path is the same use ServerAlias

Last edited by DavidPhillips; 12-05-2002 at 12:07 AM.
 
Old 12-05-2002, 12:01 AM   #6
bkeating
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Open/FreeBSD, Gentoo, SuSE
Posts: 511

Original Poster
Rep: Reputation: 38
wow! thank you so much! will try these out
 
  


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
Apache Virtual Server Problem caspery Linux - Networking 6 06-11-2005 01:24 PM
Apache Virtual Server g452 Linux - Software 1 05-22-2004 04:06 PM
Virtual Hosts in Apache Server irclord Linux - Networking 5 09-02-2003 01:29 PM
Apache virtual server IP question ScreeminChikin Linux - General 22 01-03-2003 08:58 AM
Apache Virtual Server is Killing Me... zuessh Linux - Software 4 12-04-2002 10:28 PM

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

All times are GMT -5. The time now is 04:44 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