Ok here is the senario: I have a website built on a server with nginx as the main web server I use apache as a reverse proxy The problem: I tried to use the $_SERVER[‘HTTP_HOST’] command (this gives you the hostname of the url the user requested). For example if the user requested http://subdomain.domain.net/ $_SERVER[‘HTTP_HOST’] […]