LinuxQuestions.org
Visit Jeremy's Blog.
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 03-30-2006, 01:47 AM   #1
2kau
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 domain.com.conf 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 domain.com.conf 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, 02:19 AM   #2
paul_mat
Member
 
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

http://www.yourhowto.org/content/view/48/9/

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

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


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

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

All times are GMT -5. The time now is 07:18 PM.

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