[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Using username.domainname.com ----> This works , an d is probably what you want!
- Subject: RE: [cobalt-users] Using username.domainname.com ----> This works , an d is probably what you want!
- From: BSmith@xxxxxxxxxxx
- Date: Sun Apr 21 13:20:13 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Egads ... Mistake :(
Place that before your hosts.
I.E.
NameVirtualHost 1.1.1.1
<VirtualHost 1.1.1.1>
# the user.domain.com stuff here
</VirtualHost>
<VirtualHost 1.1.1.1>
ServerName www.1.1.1.1.com
.
.
</VirtualHost>
That should be all .... I hope :)
~Brian
-----Original Message-----
From: BSmith@xxxxxxxxxxx [mailto:BSmith@xxxxxxxxxxx]
Sent: Sunday, April 21, 2002 3:12 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] Using username.domainname.com ----> This works,
an d is probably what you want!
Here is what you wanted.
http://user.domain.com -> go to the user's directory instead of your
default directory, keeping the URL intact!
Well, here it is, there are two parts. The first part is to include a
loadable VirtualHost module.
Put this right after the "setenvif_module"
LoadModule vhost_alias_module modules/mod_vhost_alias.so
The second part is to build the configuration for the <user>. I placed it
right after my last Vhost that shared the same IP address.
<VirtualHost xxx.xxx.xxx.xxx> #xxx = your ip address
UseCanonicalName Off
ServerAdmin admin
VirtualDocumentRoot /home/sites/sitename/users/%1/web/
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
# AddHandler chiliasp .asp
# AddHandler chiliasp .asa
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>
Now, it works for me just fine. I can't say it will work for you. But, for
the best trouble shooting, "tail -f /var/log/http/error". It should tell
you what your deal is.
Do NOT forget your "* in a <ip address>" in your zone file!
Good Luck All ...
PS. If any Apache care to make suggestions, I always like to learn
something new!!
Also, The Cobalt Engineers here ... Think that is something ya'll may want
to incorporate into future release?
Brian Smith
CCNA, NCSA
Network Support Engineer
SOLUSERVE
www.solunet.com
1571 Robert J. Conlan Blvd., Suite 110
Palm Bay, FL 32905
(888)449-5766
fax: (321)-308-7986
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users