#549: [PATCH] AgaviWebRequest::getUrlHost() returns in correct server IP address
--------------------------------+-------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  david     
     Type:  defect              |      Status:  new       
 Priority:  normal              |   Milestone:  0.11      
Component:  request             |     Version:  0.11.0RC5 
 Severity:  normal              |    Keywords:  getUrlHost
--------------------------------+-------------------------------------------
 Hi,

 On some setups, there is actually a difference between
 $_SERVER['SERVER_NAME'] and $_SERVER['HTTP_HOST'].

 My test machine is running nginx and passes all PHP scripts to a php-cgi
 process that binds to localhost.  $_SERVER['SERVER_NAME'] returns
 "localhost" instead of the actual IP address of the Web server. =)

 Attached is a teeny weeny patch that fixes this.  w00t!

 [ simon.cpu ]

-- 
Ticket URL: <http://trac.agavi.org/ticket/549>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to