Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Serving and Management
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Serving and Management how to web server support forum

Reply
 
LinkBack Thread Tools
Old 01-11-2006, 11:03 PM   #1 (permalink)
Registered User
 
Join Date: Jan 2006
Posts: 3
OS: Linux and XP PRO


Apache VirtualHost Overlap Problem

Hello,

I have been running apache 1.3.22 on Redhat 7.2 for quite some time with only one web page. I am in need to run a second web page so I am trying to setup VirtualHosting with no success.

I get this error ---\/
VirtualHost www.amuseaz.com:80 overlaps with VirtualHost www.101casinoparties.com:80, the first has precedence, perhaps you need a NameVirtualHost directive

********* Here is my httpd.conf file for the VirtualHosting
#
# Use name-based virtual hosting.
#
NameVirtualHost *

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost www.amuseaz.com>
ServerAdmin paul@amuseaz.com
DocumentRoot /usr/local/apache/html
ServerName www.amusez.com
ErrorLog /usr/local/apache/logs/amuseaz_error_log
CustomLog /usr/local/apache/logs/amuseaz_access_log common
CustomLog /usr/local/apache/logs/amuseaz_referer_log referer
</VirtualHost>

<VirtualHost www.101casinoparties.com>
ServerAdmin paul@101casinoparties.com
DocumentRoot /usr/local/apache/101casinoparties
ServerName www.101casinoparties.com
ErrorLog /usr/local/apache/logs/101casinoparties_error_log
CustomLog /usr/local/apache/logs/101casinoparties_access_log common
CustomLog /usr/local/apache/logs/101casinoparties_referer_log referer
</VirtualHost>

I can not seem to find a resolution to this problem. Is there anyone that can help? Thanks
azpaul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 01-11-2006, 11:34 PM   #2 (permalink)
Registered User
 
Join Date: Jan 2006
Posts: 3
OS: Linux and XP PRO


I forgot to add this troubleshooting part

I found this neat web page that shows the HTTP header info of a url request.

The results posted at the bottom are right on so I think it is how apache is handeling the request. I am baffled. Notice on the bottom the cntent WOW! That is the index.html page in that root directory for casinoparties.

Thanks again.

Rex Swain's HTTP Viewer
http://www.rexswain.com/httpview.html
Parameters:
URL = http://www.101casinoparties.com
UAG = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 (ax)
AEN =
REQ = GET ; VER = 1.1 ; FMT = AUTO
Sending request:

GET / HTTP/1.1
Host: www.101casinoparties.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 (ax)
Connection: close

� Finding host IP address...
Host IP address = 65.118.188.13
� Finding TCP protocol...
� Binding to local socket...
� Connecting to host...
� Sending request...
� Receiving response...
Total bytes received = 258
Elapsed time so far: 5 seconds
Header (Length = 253):
HTTP/1.1�200�OK(CR)(LF)
Date:�Thu,�12�Jan�2006�06:51:38�GMT(CR)(LF)
Server:�Apache/1.3.22�(Unix)�PHP/4.2.2(CR)(LF)
Last-Modified:�Thu,�12�Jan�2006�04:47:38�GMT(CR)(LF)
ETag:�"46d2e-5-43c5df6a"(CR)(LF)
Accept-Ranges:�bytes(CR)(LF)
Content-Length:�5(CR)(LF)
Connection:�close(CR)(LF)
Content-Type:�text/html(CR)(LF)
(CR)(LF)
Content (Length = 5):
WOW!(LF)
Done
Total elapsed time: 5 seconds
azpaul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-12-2006, 09:23 PM   #3 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Chicago burbs
Posts: 2,194
OS: Gentoo Linux, CentOS, OS X

My System

Above your VirtualHost sections, add the following line:

Quote:
NameVirtualHost 1.2.3.4:80
Replace the 1.2.3.4 with your IP address.
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-12-2006, 10:20 PM   #4 (permalink)
Registered User
 
Join Date: Jan 2006
Posts: 3
OS: Linux and XP PRO


Resolved!!

Hello,

Thanks for the reply. I have tried replacing the * with the actual IP Address and would get overlap errors.

I di however find the problem. Through all my reasearch and all the forums noboday addressed this possability, until now.

BindAddress * statement was commented out. I have been running a single domain and it never needed it until now. I bit the bullet and started from scratch reading the apache how to manual like a 4th grader and found the link to BindAddress.

That was the ticket. When working with any type of virtual hosting, the BindAddress must be loaded. It still does not explain the http header website results though.

Thanks for the help.

BTW, love your tag line!
azpaul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-13-2006, 12:50 AM   #5 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Chicago burbs
Posts: 2,194
OS: Gentoo Linux, CentOS, OS X

My System

Interesting. Although, I have BindAddress commented out on my servers and have never had any issues with hosting multiple domains.
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 06:56 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85