Organizational Research By

Surprising Reserch Topic

Question:PHP Fastcgi / CGI - cgi.force_redirect Directive


PHP work with FastCGI. Fascgi reduces the memory footprint of your web server, but still gives you the speed and power of the entire PHP language. You can configure Apache2+PHP+FastCGI or cgi as described here. The configuration directive cgi.force_redirect prevents anyone from calling PHP directly with a URL like http://www.cyberciti.biz/cgi-bin/php/hackerdir/backdoor.php. Turn on cgi.force_redirect for security reasons. Edit /etc/php.d/security.ini and set the following directive:

; Enable cgi.force_redirect for security reasons in a typical *Apache+PHP-CGI/FastCGI* setup
cgi.force_redirect=On

asked Sep 13, 2013 in PHP by rajesh
edited Sep 12, 2013
0 votes
276 views



Related Hot Questions

2 Answers

0 votes
Yah its mandatory for security reason when we configure with windows server and IIS web server
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013
0 votes
Yah its mandatory for security reason when we configure with windows server and IIS web server
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013

...