Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-30-2006, 02:47 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
Apache Vhost Help Needed

I had it working and now I am trying to do something more complex but I can't get it working.

I have one IP which has 10 domains on it.
Then I have 4 more IPs and each IP has only 1 domain assigned to it.

In each file I have:

<VirtualHost IP:80>

In listen.conf I have:

NameVirtualHost IP1:80
NameVirtualHost IP2:80
NameVirtualHost IP3:80
NameVirtualHost IP4:80
NameVirtualHost IP5:80

I am sure I am missing something but I don't know what or where.

The problem is all domains go to the same domain, which is the first conf file in the dir. They are not being directed to the correct domains. Even the stand alone domains with their own IP which DNS points to.

What am I doing wrong?

All the CONF files are in the same directory BTW. I tried including each one seperatly in httpd.conf instead of *.conf but nothing different happens.

The edits I mentioned to listen.conf and the addition of the files are the only changes to Apache files I have made.

I think there is more that needs to be added to listen.conf? Not sure though.
Old 03-30-2006, 03:19 AM   #2
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
i've got a fairly basic how-to writtern on my website with ip based virtual hosts on apache 2

not sure if thats what your looking for ...
Old 03-30-2006, 03:27 AM   #3
LQ Newbie
Registered: Mar 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks but it doesn't help me with my problem.


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
apache vhost problem jelgavchik Linux - Software 4 04-27-2008 05:45 PM
Apache: Alias is working on ssl vhost but not on mass vhost jonavogt Linux - Software 0 06-07-2005 03:05 PM
vhost in apache jelgavchik Linux - Networking 3 02-07-2005 07:41 PM
Apache 2 vhost and permissions basse- Linux - Software 1 04-05-2004 08:48 AM
apache 1.3 vhost z4Rilla Linux - Software 0 08-03-2003 07:44 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:20 AM.

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