Static Files Options
The Options tab modifies the nginx behavior for the specific Static Files address. It is possible to have a Static Files with a web path that is within another Static Files configuration. This allows for finer tuning of settings for specific web paths.
Enable index.html behavior
Toggles whether nginx will serve index.html
automatically when a visitor accesses a directory. When PHP is enabled the configuration will favor index.html
before checking index.php
.
The exact order of precedence is index.html
before index.htm
then index.php
.
- Enable this for standard website behavior
Enable PHP
Lifeboat is able to enable and disable PHP for individual Static Files configurations. This checkbox toggles whether or not nginx will execute PHP scripts. When disabled, PHP scripts will be returned as plain text!
- Possible security concern
This checkbox is not visible when PHP is not installed. More details on installing PHP with Lifeboat.
Hide contents of directories without an index
This checkbox instructs nginx to send the visitor a 403 - Forbidden page when accessing a directory that has no index.html
or index.htm
. When disabled, visitors are able to see and explore the contents of directories within the Static Files configuration.
- Enable this for standard website behavior
- Possible security concern
This checkbox is not visible unless advanced Web App options are enabled.