[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] httpd.conf error
- Subject: RE: [cobalt-developers] httpd.conf error
- From: "Kal Amry" <kamry1888@xxxxxxxxx>
- Date: Tue Jan 2 23:57:00 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
I've just checked mine, and it has the same as your configurations except
for some additions that you have and I don't have which I don't think that
they are causing the problem.
Some thoughts although I have no much experience:
Note: Did you define the main site which is /home/sites/(home instead of
site1). On the cobalt the home is the main site then comes site1, 2 and so
on.
**************The Following is Applied to the Raq 3 Yet It could be almost
the Same as the Raq 4, but just in case, I did point out that it is a Raq 3
implementations*****************************
I do not have the Raq 4 materials but this is as far as I know happens when
you create a site. However I think number one is most applicable to your
situation as it is obvious from the error, but that could be wrong, so here
is the whole steps that the cobalt take when creating a site:
1. If I understood you correctly, then you are using one IP address for all
other virtual sites. In this case, you should define the mother site with
the heading "NameVirtualHost xxxxxx" and then all others which posses the
same IP address should follow but without that heading so you'll start from:
<VirtualHost xxx.xxx.xxx.xxx> and keep adding in this manner unless you are
defining a new site with a new IP, then you need to include that heading
"NameVirtualHost xxxxxx".
2. A directory must be created for each virtual site (i.e.
/home/sites/(site3 or site1 or ......)
3. Site management directory (i.e.
/usr/admserv/html/.cobalt/siteManage/(site1 or ....)
4. Log files rotations are also created (/etc/logrotate.d/ and
/etc/logrotate.onboot/)
5. Quota: (Disk usage quotas are added to the site# group
6. Password protection (.htaccess created in the /usr/admserv virtual site
directory
7. Mailing lists (Entries are added to the /etc/virtusertable file for the
mailing list program, majordomo for both the Virtual site mailing list and a
Virtual site user mailing list.
Mailing list binary files are recompiled with the virtual site information
/etc/aliases.majordomo
8. Email (Virtual site settings are added to the mail server configuration
files.
File /etc/mail/access
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of Jay Nelson
Sent: Friday, December 29, 2000 9:39 PM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: [cobalt-developers] httpd.conf error
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/
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com