[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Using username.domainname.com
- Subject: Re: [cobalt-users] Using username.domainname.com
- From: Menno M Jansz <lists@xxxxxxxxx>
- Date: Tue Apr 16 08:25:34 2002
- Organization: www.jansz.com
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
I used the following
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.[^.]+\.mydomain\.com$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^www\.([^.]+)\.mydomain\.com(.*) http://mydomain.com/~$1$2 [L,R]
RewriteCond %{HTTP_HOST} !^213.239.5.227(:80)?$
RewriteCond %{HTTP_HOST} !^www.mydomain.com(:80)?$
RewriteRule ^/(.*) http://www.mydomain.com/$1 [L,R]
How do you get the raq to accept a * for the A record? Mine wont accept *. Did you just ammend teh /etc/named files direct?
Cheers,
Menno
16/04/2002 22:51:52, Zhang Shiping <zhangshiping@xxxxxxxxx> wrote:
>> Maybe I'm completely off the mark, but that looks
>> like you'd have to modify
>> a DNS setting as well.
>
>Yes DNS needs to be modified as well. I've done it by
>A Record:
>* A xxx.xxx.xxx.xxx
>
>So all url like
>anything.domainname.com will use my server. It's
>successful.
>
>But I have not solved the url rewrite problem. That is
>to add something in httpd.conf so
>
>Whatever.mydomain.com will use
>www.mydomain.com/~Whatever
>
>Best regards,
>Stanley
>
>
>> At 11:16 16/04/2002 -0700, you wrote:
>> >Hi, everyone,
>> >
>> >I prefer
>> >username.domainname.com
>> >instead of
>> >www.domainname.com/~username
>> >
>> >I successfully did it in httpd.conf by adding
>> >
>> ><VirtualHost 4.22.121.61>
>> >ServerName username.domainname.com
>> >DocumentRoot
>> >/home/sites/www.domainname.com/users/username/web
>> ></VirtualHost>
>> >
>> >The problem is I have to add 100 users so I have to
>> >write this for 100 times. Is there any way that I
>> only
>> >need to do it once. That is
>> >Whatever.domainname.com will be rewritten to
>> >www.domainname.com/~Whatever
>> >
>> >Thanks a lot
>> >Stanley
>> >
>> >
>> >__________________________________________________
>> >Do You Yahoo!?
>> >Yahoo! Tax Center - online filing with TurboTax
>> >http://taxes.yahoo.com/
>> >
>> >_______________________________________________
>> >cobalt-users mailing list
>> >cobalt-users@xxxxxxxxxxxxxxx
>> >To Subscribe or Unsubscribe, please go to:
>>
>>http://list.cobalt.com/mailman/listinfo/cobalt-users
>> >
>> >--
>> >This message has been scanned for viruses and
>> >dangerous content by MailScanner, and is
>> >believed to be clean.
>>
>> Mr. Michele Neylon
>> Blacknight Solutions
>> http://www.blacknightsolutions.com/
>> http://www.irishsearch.net/
>>
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>>
>> _______________________________________________
>> cobalt-users mailing list
>> cobalt-users@xxxxxxxxxxxxxxx
>> To Subscribe or Unsubscribe, please go to:
>> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Tax Center - online filing with TurboTax
>http://taxes.yahoo.com/
>
>_______________________________________________
>cobalt-users mailing list
>cobalt-users@xxxxxxxxxxxxxxx
>To Subscribe or Unsubscribe, please go to:
>http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>