Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.10

Bug #19866 The action Jump translates incorrectly the URL when using PHP-FPM
Submitted: 2013-03-22 23:41 UTC
From: vtamara Assigned:
Status: Open Package: HTML_QuickForm_Controller (version 1.0.10)
PHP Version: Irrelevant OS: OpenBSD with nginx and php-fpm
Roadmaps: (Not assigned)    
Subscription  


 [2013-03-22 23:41 UTC] vtamara (Vladimir Támara Patiño)
Description: ------------ Using nginx and php-fpm, when the Jump action is fired, it changes the URL using the addres or name configured in nginx and not to the URL used by the user. Test script: --------------- class Salta extends HTML_QuickForm_Action { function perform(&$page, $actionName) { if (($pdest = $page->controller->getPage($actionName)) != null) { $pdest->handle('jump'); } } } Expected result: ---------------- When called for example from http://192.168.190.3/url1.php After the action is fired it is expected an URL like http://192.168.190.3/url2.php Actual result: -------------- Using Apache it works fine, but using nginx with php-fpm it tries to open the URL http://127.0.0.1/url2.php or instead of 127.0.0.1 the address or name configured as server_name in the nginx configuration file.

Comments

 [2013-03-22 23:43 UTC] vtamara (Vladimir Támara Patiño)