-
Notifications
You must be signed in to change notification settings - Fork 1.7k
MAGECLOUD-3409 update web property #4205
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few suggested clarifications and a question about use of path versus URL
|
||
Our default configuration allows the following: | ||
|
||
- From the root (`/`) path, only web, media, and `robots.txt` files can be accessed | ||
- From the root (`/`) path, only web, media, and `robots.txt` files can be accessed | ||
For versions 2.1.4 to 2.1.10, the rules entry for the `robots.txt` file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For versions 2.1.4 to 2.1.10, the rules entry for the `robots.txt` file: | |
For versions 2.1.4 to 2.1.10, the configuration includes the following rules entry for the `robots.txt` file: |
@@ -79,18 +79,20 @@ The `web` property defines how your application is exposed to the web (in HTTP). | |||
|
|||
You can specify the following attributes for the `web` property: | |||
|
|||
- `document_root`: The path relative to the root of the application that is exposed on the web. Typical values include `/public` and `/web`. | |||
- `passthru`: The URL used in the event a static file or PHP file could not be found. This would typically be your applications front controller, often `/index.php` or `/app.php`. | |||
- `index_files`: To use a static file (for example, `index.html`) to serve your application. This key expects a collection. For this to work, the static file(s) should be included in your whitelist. For example, to use a file named `index.html` as an index file, your whitelist should include an element that matches the filename, like `- \.html$`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
index_files
| Specifies a static file (for example, index.html
) to serve your application. This key expects a collection. For this to work, the static file(s) should be included in your whitelist. For example, to use a file named index.html
as an index file, ensure that your whitelist includes an element that matches the filename, like - \.html$
.
Co-Authored-By: hguthrie <hguthrie@users.noreply.github.com>
running tests |
Hi @hguthrie, thank you for your contribution! |
This PR updated the Application topic so that the
web
property shows the latest default set of web accessible locations. The rules forrobots.txt
file are different for 2.1.11 and later.whatsnew
Updated the default web accessible locations with the latest rules for the
robots.txt
file.