The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Virtual Hosts and Alteon DNS conflicts jackola UNIX for Advanced & Expert Users 0 04-08-2008 01:14 PM
Apache Virtual Server Help ratnamg Linux 0 02-05-2008 08:44 PM
Application & Virtual hosts in Apache moe2266 UNIX for Dummies Questions & Answers 0 10-16-2007 02:12 PM
Resolving Aliases and Virtual IP's on a Host Scott Pullen UNIX for Advanced & Expert Users 1 12-20-2001 02:11 PM
Apache virtual host 98_1LE UNIX for Dummies Questions & Answers 4 12-11-2001 06:23 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-19-2004
ezekiel61 ezekiel61 is offline
Registered User
  
 

Join Date: Feb 2002
Location: HELLena, MT
Posts: 14
Apache 2 Virtual Hosts not resolving

Hey all,

I'm having some apache problems. I've installed apache countless times on FreeBSD. However, I'm having some problems and I could use some help. Here is my system info:

FreeBSD 5.2.1
Apache 2.0.51 (/usr/local/apache2), doc root (/www symlink to /var/www)
PHP 5.0.1 (/usr/local/php)
MySQL 4.1.3 (/usr/local/mysql)
AMD 1.5Ghz/512MB

I am using a DNS hosting provider to point serveral domains to my IP address. From there my router passes all port 80 requests to my web/email server. Once to my server, Apache uses the Virtual Host to forward to the right site directory.

Well my domains to get to my site, however apache isn't routing the domain requests to the right folders; my default domain is showing up. Here are a few lines from my httpd.conf file i thought might be useful for your help:

ServerRoot "/usr/local/apache2"
Listen 192.168.77.3:80
ServerName www.ezekiel61-domain.com:80
DocumentRoot "/www"

NameVirtualHost *:80
# ezekiel61-domain.com
<VirtualHost *>
DocumentRoot /www/ezekiel61-domain.com
ServerName ezekiel61-domain.com
ErrorLog logs/ezekiel61-domain.com-error_log
CustomLog logs/ezekiel61-domain.com-access_log common
</VirtualHost>
# bar.ezekiel61-domain.com
<VirtualHost *>
DocumentRoot /www/bar.ezekiel61-domain.com
ServerName bar.ezekiel61-domain.com
</VirtualHost>
# badonkadonk.org
<VirtualHost *>
ServerName butt.badonkadonk.org
DocumentRoot /www/butt.badonkadonk.org
</VirtualHost>

all these directories exists, but for some reason only my primary domain shows up. So if I goto www.ezekiel61-domain.com, I do see its homepage. If I goto butt.badonkadonk.org I see www.ezekiel61-domain.com.

Any suggestions? Thanks in advance!!!

E
  #2 (permalink)  
Old 08-20-2004
viRaven viRaven is offline
Registered User
  
 

Join Date: Dec 2003
Location: The O.C.
Posts: 37
Problems can arise from the client not sending the required information for name-based virtual hosts, this results in the server sending back the first virtual host listed.

Happens mostly with older browsers.
  #3 (permalink)  
Old 08-20-2004
ezekiel61 ezekiel61 is offline
Registered User
  
 

Join Date: Feb 2002
Location: HELLena, MT
Posts: 14
Well this happens from every computer I've tried to access the sites from.

For instance 4 of my test case computers are running IE 6+ and Mozilla Firefox 0.9.3. Any other suggestions?

Thanks.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0