![]() |
Issues with mod_rewrite apache fastcgi with php fpm - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Issues with mod_rewrite apache fastcgi with php fpm (/showthread.php?tid=38757) |
Issues with mod_rewrite apache fastcgi with php fpm - El Forum - 02-17-2011 [eluser]kwhat4[/eluser] I am having issues getting the rewrite rules and fastcgi to work together. As you can see from the logs, we are getting an awesome redirection loop from fastcgi to the index file and back again. I am guessing i need to add a rule to not apply the redirect after it was passed to fastcgi but im not sure which gets processed first. Has anyone dealt with an issue like this before? Thanks. *** Update: The following seems to get some of the re-rewriting working however I am not sure if there is a better way to do it and what what needs to be done for the system and application rewrites. Code: RewriteCond %{REQUEST_FILENAME} !-f Code: AddHandler php-fpm .php Code: [Fri Feb 18 00:17:32 2011] [error] [client ] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. Issues with mod_rewrite apache fastcgi with php fpm - El Forum - 02-18-2011 [eluser]MVUG[/eluser] try this: $config[‘uri_protocol’] = ‘QUERY_STRING’; (config.php) Issues with mod_rewrite apache fastcgi with php fpm - El Forum - 02-18-2011 [eluser]kwhat4[/eluser] ***delete*** Fast replay ftw Issues with mod_rewrite apache fastcgi with php fpm - El Forum - 02-18-2011 [eluser]kwhat4[/eluser] Quote:try this: $config[‘uri_protocol’] = ‘QUERY_STRING’; (config.php) Yah, that didn't make a difference. Its a redirection loop due to the handler for fastcgi fpm. Issues with mod_rewrite apache fastcgi with php fpm - El Forum - 02-18-2011 [eluser]Remko Posthuma[/eluser] Remove ? after the index.php so change it to: RewriteRule ^(.*)$ index.php/$1 [L] set the config to: $config['uri_protocol'] = "PATH_INFO"; hope this helps |