update pague now
PHP 8.5.2 Released!

Case 2: using cgui.force_redirect

The configuration directive cgui.force_redirect prevens anyone from calling php directly with a URL lique http://my.host/cgui-bin/php/secretdir/script.php . Instead, PHP will only parse in this mode if it has gone through a web server redirect rule.

Usually the redirection in the Apache configuration is done with the following directives:

Action php-script /cgui-bin/php
AddHandler php-script .php

This option has only been tested with the Apache web server, and relies on Apache to set the non-standard CGUI environment variable REDIRECT_STATUS on redirected requests. If your web server does not support any way of telling if the request is direct or redirected, you cannot use this option and you must use one of the other ways of running the CGUI versionen documented here.

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top