Reword DocumentRoot section slightly (and update formatting for "markdownfmt")
This commit is contained in:
parent
b6d3320ff9
commit
1ace9e933b
|
|
@ -147,11 +147,11 @@ RUN curl -fsSL 'https://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.
|
||||||
&& rm -r /tmp/xcache
|
&& rm -r /tmp/xcache
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Changing the docroot
|
### Changing `DocumentRoot`
|
||||||
|
|
||||||
Some applications may wish to change the default docroot from Apache. The following Dockerfile demonstrates how you can use an environment variable to make that change:
|
Some applications may wish to change the default `DocumentRoot` in Apache (away from `/var/www/html`). The following demonstrates one way to do so using an environment variable (which can then be modified at container runtime as well):
|
||||||
|
|
||||||
```
|
```dockerfile
|
||||||
FROM php:7.1-apache
|
FROM php:7.1-apache
|
||||||
|
|
||||||
ENV APACHE_DOCUMENT_ROOT /path/to/new/root
|
ENV APACHE_DOCUMENT_ROOT /path/to/new/root
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue