FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.
Subdomain $SERVER_NAME resolves as?
Posted on 27 January 2004 10:44 AM
Question:

I would like to create the subdomain: clients.example.com

Would the server name - $SERVER_NAME - resolve as
clients.example.com ?

Answer:

You have:
www.example.com
and
clients.example.com

When you access 'clients.example.com':
SERVER_NAME == www.example.com

What you would be looking for is:
HTTP_HOST == clients.example.com