Skip to content

Commit a686702

Browse files
author
Derick Rethans
committed
- MFH for:
document force-redirect in php.ini
1 parent a8e5e3f commit a686702

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

php.ini-recommended

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ default_mimetype = "text/html"
361361
;include_path = ".;c:\php\includes"
362362

363363
; The root of the PHP pages, used only if nonempty.
364+
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
365+
; if you are running php as a CGI under any web server (other than IIS)
366+
; see documentation for security issues. The alternate is to use the
367+
; cgi.force_redirect configuration below
364368
doc_root =
365369

366370
; The directory under which PHP opens the script using /~usernamem used only
@@ -375,6 +379,19 @@ extension_dir = ./
375379
; disabled on them.
376380
enable_dl = On
377381

382+
; cgi.force_redirect is necessary to provide security running PHP as a CGI under
383+
; most web servers. Left undefined, PHP turns this on by default. You can
384+
; turn it off here AT YOUR OWN RISK
385+
; **You CAN safely turn this off for IIS, in fact, you MUST.**
386+
; cgi.force_redirect = 1
387+
388+
; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
389+
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
390+
; will look for to know it is OK to continue execution. Setting this variable MAY
391+
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
392+
; cgi.redirect_status_env = ;
393+
394+
378395

379396
;;;;;;;;;;;;;;;;
380397
; File Uploads ;

0 commit comments

Comments
 (0)