LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-13-2003, 01:05 PM   #1
ecroswell
LQ Newbie
 
Registered: Mar 2003
Distribution: RH v8.0
Posts: 14

Rep: Reputation: 0
RH:8 Multiple Hosts Problem


I am trying to have multiple VirtualHosts under 1 IP address. For whatever reason, I cannot get the names to resolve to their own directories. Both names resolve to the main /var/www/html directory.

Is this a Network config thing or a DNS thing.

Help is greatly appreciated.
thanks
erik
 
Old 03-13-2003, 01:23 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
IMHO it's Apache configuration problem. Could you paste the VirtualHost part?
 
Old 03-13-2003, 01:34 PM   #3
ecroswell
LQ Newbie
 
Registered: Mar 2003
Distribution: RH v8.0
Posts: 14

Original Poster
Rep: Reputation: 0
What is IMHO mean?

here is the VirtualHost part from my httpd.conf file. thanks for hte help in this..... I am going to start pulling my hair out soon... lol

NameVirtualHost 192.1.1.203

#
# Virtual hosts
#

# Virtual host ray
<VirtualHost 192.1.1.203>
DocumentRoot /var/www/ray/htdocs
ServerName ray
ServerAlias www.ray.com
DirectoryIndex index.htm
UseCanonicalName off
LogFormat COMBINED
ErrorLog /var/www/ray/logs/error_log
TransferLog /var/www/ray/logs/access_log
HostNameLookups off
AddType text/html .htm .html .shtml
Addhandler server-parsed .htm .html .shtml

<Directory "/var/www/ray/htdocs">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "/var/www/ray/cgi-bin">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ var/www/ray/cgi-bin/
</VirtualHost>

# Virtual host erik
<VirtualHost 192.1.1.203>
DocumentRoot /var/www/erik/htdocs
ServerName erik
ServerAlias www.erik.com
DirectoryIndex index.htm
UseCanonicalName off
LogFormat COMBINED
ErrorLog /var/www/erik/logs/error_log
TransferLog /var/www/erik/logs/access_log
HostNameLookups off
AddType text/html .htm .html .shtml
Addhandler server-parsed .htm .html .shtml

<Directory "/var/www/erik/htdocs">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "/var/www/erik/cgi-bin">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ var/www/erik/cgi-bin/
</VirtualHost>
 
Old 03-13-2003, 02:21 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
I'd change ServerName <-> ServerAlias.
 
Old 03-13-2003, 02:39 PM   #5
ecroswell
LQ Newbie
 
Registered: Mar 2003
Distribution: RH v8.0
Posts: 14

Original Poster
Rep: Reputation: 0
well I tried switching ServerName to be ServerAlias and that didnt do it. I really feel that this is something to do with the Network Config or the DNS config. Do I have to set up anything in the DNS like a forward or a reverse zone file?

The funniest and yet sadest thing about this all is that I had it working for a brief period of time.

HHHMMMMMMM....

thanks for your help
 
Old 03-13-2003, 03:15 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
The DNS should be configured to resolve both names as the same IP. It's not a problem, usually. No need for forwarding or reverse DNS.
 
Old 03-13-2003, 03:17 PM   #7
twan
Member
 
Registered: Feb 2003
Location: Brasschaat, Antwerpen - Belgium
Distribution: Gentoo
Posts: 52

Rep: Reputation: 15
Quote:
Originally posted by ecroswell
What is IMHO mean?
in my humble opinion
 
Old 03-14-2003, 07:24 AM   #8
ecroswell
LQ Newbie
 
Registered: Mar 2003
Distribution: RH v8.0
Posts: 14

Original Poster
Rep: Reputation: 0
Error_Log Message

I started this post nad am still having the same issue. Cant get multiple Hosts to run of of a single IP Address (which happens to be the IP address to the server 192.1.1.203)

Below is a post that I posted in the General section of this site but it looks a little further into my situation and exp[ands on the posts in this thread! PLEASE HELP

<<< PoSt BeGiNs >>>

Hope someone can give me a hand with this one. I posted yesterday that I am trying to setup an IntrAnet RH-8.0 Linux server and am having trouble getting any VirtualHosts run. I can only get the default site /var/www/html files to appear. I have the VirtualHosts added in the HTTP service but still cant get it to work. Does anyone know if I need to add any information in the DNS Service? Or the Network section? The way our DNS works here is that the firewall points the domains abc & xyz both to the IP address 192.1.1.203 (which is the IP of the server itself).

At any rate below is a snippet from my error_log that caught my attention:

[info] mod_unique_id: using ip addr 127.0.0.1
[debug] prefork.c(1039): AcceptMutex: sysvsem (default:sysvsem)

Any help is greatly appreciated. I am very new to the Red Hat & Linux environment but am excited with what I know I can accomplish with it!

Thanks in advance
Erik Croswell
 
Old 03-14-2003, 03:12 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
Does it work with simpliest possible configuration?
Code:
NameVirtualHost  192.1.1.203 

    <VirtualHost 192.1.1.203 >
    ServerName www.ray.com
    DocumentRoot /var/www/ray/htdocs
    </VirtualHost>

    <VirtualHost 192.1.1.203 >
    ServerName www.erik.com
    DocumentRoot /var/www/erik/htdocs
    </VirtualHost>
 
Old 03-17-2003, 05:53 AM   #10
ecroswell
LQ Newbie
 
Registered: Mar 2003
Distribution: RH v8.0
Posts: 14

Original Poster
Rep: Reputation: 0
I have found my problem. For anyone who runs into the same issue as I stated above, here could be a possible resolution >>>

In the Services control panel, I have a service called TUX running. When I turned it off, all my VHosts seemed to work just fine.

Does anyone know what TUX is? The services panel doesnt really give a detailed explanation.
 
  


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
lighttpd: multiple virtual hosts? neocookie Linux - Software 8 03-27-2006 10:37 PM
Aggregated RPM DB from multiple hosts scylla Linux - Enterprise 1 11-10-2004 04:38 PM
PGP across multiple hosts mr666white Linux - Security 4 08-22-2004 10:14 AM
remote ssh commands on multiple hosts evilchild Linux - Software 6 08-12-2004 10:48 PM
multiple virtual hosts iquadri1 Linux - Networking 1 09-25-2001 10:12 AM


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