title: ServerName in vhost not set in php $_SERVER variable?
body: <p>The ServerName is set in the virtual host but when I reference <code>$_SERVER['SERVER_NAME']</code> I get whatever is set in the request header. </p>
  
  <p>I was playing around with spoofing it and whatever I set the Host request header to that's what gets populated in the server variable. </p>
  
  <p>I thought it should take whatever is in the vhost and another variable like <code>$_SERVER['HTTP_HOST']</code> should have the request header value. </p>
  
  <p>I would expect some dummy value gets set if the vhost isn't working properly and not just using the request header.</p>
  
  <p>Is there any apache config settings I should look into? What could cause this to be happening on the server?  </p>
  
  <p>The reason I want to rely on the <code>$_SERVER['SERVER_NAME']</code> is for security and reliability so users' can't spoof it, so we are the ones who set it and key off it during scripting.</p>
  
  <p>Thanks.</p>