exp:ezrequestrules
List and check the request rules of a siteaccess and explain their decision for an address.
Script bin/php/ezrequestrules.php, code in kernel/private/classes/commands/ezrequestrules.php. Run it from the installation root, as the user the web server runs as:
./console exp:ezrequestrules --help
php bin/php/ezrequestrules.php --helpHelp text
Exponential request rules
Lists and checks the rules of a siteaccess and explains their decision for an address.
php bin/php/ezrequestrules.php -s site --list
php bin/php/ezrequestrules.php -s site --check
php bin/php/ezrequestrules.php -s site --uri=content/view/full/2
php bin/php/ezrequestrules.php -s site --uri=Fit-Healthy --user=admin
php bin/php/ezrequestrules.php -s site --uri=content/view/full/2 --header=X-Requested-With:XMLHttpRequest --ip=10.1.2.3Options
| Option | Value | Help |
|---|---|---|
--list | List the rules in the order they are asked | |
--check | Report problems in the settings; exits 1 when there are any | |
--uri | required | Explain the decision for this address, as typed after the host and siteaccess (e.g. content/view/full/2 or Fit-Healthy) |
--user | required | The login of the user to explain it for (default: the anonymous user) |
--method | required | HTTP method (default GET) |
--host | required | Host name the visitor used |
--ip | required | Client address |
--scheme | required | http or https (default https) |
--header | required | A request header, Name:Value; may be given more than once |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/ezrequestrules.php, kernel/private/classes/commands/ezrequestrules.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.