[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] httpd.conf error
- Subject: [cobalt-developers] httpd.conf error
- From: Jay Nelson <jay@xxxxxxxxxxx>
- Date: Tue Jan 2 22:16:50 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
I am in the process of setting up JDK 1.3 with Tomcat and
SSL with virtual hosts. I will publish a summary of what I
did once it is all working (cross fingers).
Unfortunately, in the process of changing the httpd.conf file
I overwrote it with an early version that had no virtual sites.
I have only 4 virtual sites, so I added a new site and used
that as a template to put back the old ones I wiped. All seems
OK from the server as my sites (www.afropulse.com,
www.5x5.net, and www.duomark.com plus others) are
accessible, however, whenever I start the httpd daemon
I get the following warning:
[warn] NameVirtualHost xxx.xxx.xxx.xxx:80 has no VirtualHosts
where the IP address corresponds to my fixed IP for all the
virtual sites. The error repeats three times but as far as I
can tell it is not causing a problem for people to access the
sites. I never started httpd from the command line before so
I never noticed this error.
My httpd.conf has the following standard block for each of
the virtual sites (where sitex is different for each one):
NameVirtualHost xxx.xxx.xxx.xxx
<VirtualHost xxx.xxx.xxx.xxx>
ServerName www.afropulse.com
ServerAdmin admin
DocumentRoot /home/sites/site1/web
ServerAlias afropulse.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^xxx.xxx.xxx.xxx(:80)?$
RewriteCond %{HTTP_HOST} !^www.afropulse.com(:80)?$
RewriteRule ^/(.*) http://www.afropulse.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3
</VirtualHost>
The IP addresses match correctly, and the same block is used
for the master domain name (/home/sites/home == www.5x5.net).
Does the <VirtualHost ...> need to have :80 trailing the IP?
I didn't try that because I am using SSL and wasn't sure what
the implications to other sockets would be. Can anyone peak
at their httpd.conf and tell me what I messed up in retyping the
block? Or is it the case that the primary site has different
rewrite rules?
---------------------------------------------------
DuoMark International, Inc.
6523 Colgate Avenue, Suite 325
Los Angeles, CA 90048-4410 / USA
Voice: +1 323 381-0002
FAX: +1 323 549 0172
Email: jay@xxxxxxxxxxx
WWW: http://www.duomark.com/