Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP_X_HOST

Status
Not open for further replies.

tweenerz

Programmer
Mar 25, 2002
202
US
What is the difference between HTTP_HOST and HTTP_X_HOST? Googling for HTTP_X_HOST brings up only three pages of results - half of which is of another language - and php.net provides nothing that I can find. Nor can I find HTTP_X_HOST anywhere in this forum's past posts.

Does anyone have an answer as to what HTTP_X_HOST is or why it is provided? In my server configuration, the only difference is that HTTP_HOST contains the port (i.e. domain.com:1234) and HTTP_X_HOST does not (i.e. domain.com).

The reason I am asking is so I know when to use it and whether it would act differently depending on server configurations (i.e. url masking, custom.conf stuff, etc).

Thanks
 
i think http_x_host is inserted by proxies
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top