| 1 | |
| 2 | == !DocumentRoot Directive |
| 3 | Directory that forms the main document tree visible from the web. |
| 4 | |
| 5 | This directive sets the directory from which [/tewi Tewi] will serve files. |
| 6 | The server appends the path from the requested URL to the document root to make the path to the document. Example: |
| 7 | |
| 8 | {{{ |
| 9 | DocumentRoot "/usr/pkg/share/tewi" |
| 10 | }}} |
| 11 | |
| 12 | then an access to http://my.example.com/index.html refers to /usr/pkg/share/tewi/index.html. |
| 13 | |
| 14 | If the directory-path is not absolute then it is assumed to be relative to the [wiki:ServerRoot ServerRoot]. |