File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,10 @@ default_mimetype = "text/html"
361
361
;include_path = ".;c:\php\includes"
362
362
363
363
; 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
364
368
doc_root =
365
369
366
370
; The directory under which PHP opens the script using /~usernamem used only
@@ -375,6 +379,19 @@ extension_dir = ./
375
379
; disabled on them.
376
380
enable_dl = On
377
381
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
+
378
395
379
396
;;;;;;;;;;;;;;;;
380
397
; File Uploads ;
You can’t perform that action at this time.
0 commit comments