SERVER_NAME cgi variable

Tobias Poschwatta tp at fonz.de
Mon Jul 6 10:52:38 UTC 2009


On Mon, Jul 06, 2009 at 02:41:41PM +0400, Anna Martynova wrote:
> You are right, but at least busybox host can have several network
> interfaces. :)
> I need to make a link for client, that directs to the same host, but
> different port. It would be nice to link to the same server address, that
> client entered to his browser...

You can use the HTTP_HOST environment variable for this. It's set per
request and contains the value of the Host header.

Tobias


More information about the busybox mailing list