Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jan 2002 14:51:19 -0800 (PST)
From:      Rick Hamell <hamellr@heorot.1nova.com>
To:        Dustin Puryear <dpuryear@usa.net>
Cc:        FreeBSD-questions <freebsd-questions@freebsd.org>
Subject:   Re: Apache and Virtual Hosts
Message-ID:  <Pine.BSF.4.21.0201091416230.78764-200000@heorot.1nova.com>
In-Reply-To: <5.1.0.14.0.20020109143920.05024598@pop.netaddress.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

> > > What's Apache's error_log got to say when you open the host that
> > > generates the 505 error?
> > >
> > > Funny thing is, I just pulled up all three hosts, each returning the
> > > same webalizer page. Seems it's working afterall.
> >
> >         Dang, it's still not working on my side. I'm SSHed into the box
> >from outside the domain. Would it possibly have something to do with
> >DNS? www.1nova.com is at the bottom of a total of 5 A records.
> 
> Then you need to give us the DNS setup on your side.

	I'm using Zoneedit.com to give me DNS until I can figure out all
the quirks and get a 2nd machine up and running.

	1nova.com    63.105.24.23 
 ftp.1nova.com    63.105.24.23 
 heorot.1nova.com    63.105.24.23 
 mail.1nova.com    63.105.24.23 
 www.1nova.com    63.105.24.23 

	A are all "A" records. 

1nova.com mail.1nova.com    0  

	Is what I have for an MX record. No CNAMES or anything. I figured
out though that the above A records were just alphabatized. Nslookup shows
www.1nova.com going to the right address. Intereseting enough, Lynx
actually brings it up eventually. It just takes forever to get there. Lynx
says it's looking up the connection, that goes pretty fast. Then takes
forever trying to the httpd connection. So I'm forced back to thinking
it's my Apache configuration that is wrong. 
 	I attached my httpd.conf and edited it down a bit to make it
smaller. But all the important stuff is there I think. :)

	Rick
	

[-- Attachment #2 --]
ServerType standalone

ServerRoot "/usr/local"

#LockFile /var/run/httpd.lock

PidFile /var/run/httpd.pid

ScoreBoardFile /var/run/httpd.scoreboard

#ResourceConfig conf/srm.conf
#AccessConfig conf/access.conf

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

MinSpareServers 5
MaxSpareServers 10

StartServers 5

MaxClients 150

MaxRequestsPerChild 0

#Listen 3000
#Listen 12.34.56.78:80


LoadModule info_module        libexec/apache/mod_info.so
LoadModule speling_module     libexec/apache/mod_speling.so
LoadModule rewrite_module     libexec/apache/mod_rewrite.so
LoadModule anon_auth_module   libexec/apache/mod_auth_anon.so
LoadModule db_auth_module     libexec/apache/mod_auth_db.so
LoadModule digest_module      libexec/apache/mod_digest.so
LoadModule proxy_module       libexec/apache/libproxy.so
LoadModule cern_meta_module   libexec/apache/mod_cern_meta.so
LoadModule expires_module     libexec/apache/mod_expires.so
LoadModule headers_module     libexec/apache/mod_headers.so
LoadModule usertrack_module   libexec/apache/mod_usertrack.so
LoadModule unique_id_module   libexec/apache/mod_unique_id.so
LoadModule php4_module        libexec/apache/libphp4.so

ClearModuleList
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_auth_anon.c
AddModule mod_auth_db.c
AddModule mod_digest.c
AddModule mod_proxy.c
AddModule mod_cern_meta.c
AddModule mod_expires.c
AddModule mod_headers.c
AddModule mod_usertrack.c
AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
AddModule mod_php4.c

#ExtendedStatus On

### Section 2: 'Main' server configuration

User nobody 
Group nogroup 

ServerAdmin hamellr@1nova.com

#Added April 26, 01 - RGH That's what the machine's name is!
ServerName heorot.1nova.com

DocumentRoot "/usr/local/www/data"

<IfModule mod_userdir.c>
#Changed April 26, 2001 - Cause I like the shorter path - RGH
    UserDir www  
	#public_html
</IfModule>

UseCanonicalName On

DefaultType text/plain

HostnameLookups Off

ErrorLog /var/log/httpd-error.log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

ServerSignature On

#Uncommented 01/02/01 -RGH to improve performance
    CacheRoot "/usr/local/www/proxy"
    CacheSize 5
    CacheGcInterval 4
    CacheMaxExpire 24
    CacheLastModifiedFactor 0.1
    CacheDefaultExpire 1
    #NoCache a_domain.com another_domain.edu joes.garage_sale.com

### Section 3: Virtual Hosts

NameVirtualHost 63.105.24.23

#www.1nova.com
#Removed 01/08/02 -RGH
<VirtualHost 63.105.24.23>
ServerAdmin root@1nova.com
DocumentRoot /usr/local/www/data
ServerName 1nova.com
ServerAlias www.1nova.com heorot.1nova.com *.1nova.com
</VirtualHost>

#www.rockypdx.org
<VirtualHost 63.105.24.23> 
ServerAdmin the_teff@yahoo.com
DocumentRoot /home/steff/www
ServerName www.rockypdx.org
#	ErrorLog logs/rockypdx.org-error_log
#	CustomLog logs/rockypdx.org_log common
</VirtualHost>


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0201091416230.78764-200000>