[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Username -> website
- Subject: Re: [cobalt-developers] Username -> website
- From: Edoardo Valsesia <edoardo@xxxxxxxxxxx>
- Date: Mon Oct 23 01:06:01 2000
- Organization: @home
- List-id: Mailing list for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
On Mon, Oct 23, 2000 at 09:13:26AM +1000, Adam Clarke wrote:
> Does the SERVER_NAME or HTTP_HOST environment variable give you what you
> need?
That's it, Adam!
SERVER_NAME is what I really need to get all the informations I need: I
thought about it too late, because I thought that RaQs had some kind of
weird mechanism to associate usernames to their sites.
And, obviously, the answer to my question was the easiest! ;-)
> I have not tested this in a virtual host environment but I think that
> one of them will give the actual hostname and the other will give the
> virtual host name.
>
> This script will let you view all the environment variables that are set.
[cut]
I think that REMOTE_USER and SERVER_NAME are exactly what I need: I
still have to test it, not having a RaQ to try it on now, but 99% that's
the solution! I'm triyng it on my computer with a couple of VHOSTS and
it works, so I really think on the RAQ it'll be the same.
Thanks!
Edo