Re: server name that the user agent used
| From: | Tommy Pham | Date: | Mon, 14 Sep 2009 02:24:57 +0000 |
| Subject: | Re: server name that the user agent used | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297994@lists.php.net to get a copy of this message | ||
--- On Sun, 9/13/09, Tom Worster <fsb@thefsb.org> wrote:
> From: Tom Worster <fsb@thefsb.org>
> Subject: [PHP] server name that the user agent used
> To: "PHP General List" <php-general@lists.php.net>
> Date: Sunday, September 13, 2009, 8:21 PM
> when using apache with one vhost that
> responds to a few different hostnames,
> e.g. domain.org, y.domain.org, x.domain.org, let's say the
> vhost's server
> name is y.domain.org and the other two are aliases, is
> there a way in php to
> know which of these was used by the user agent to address
> the server?
>
Did you see what comes up with php_info() for
$_SERVER["SERVER_NAME"] or $_SERVER["HTTP_HOST"] ?
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>