Browse Source

Provide instructions to obtain the default upstream httpd.conf (#1616)

Timothy Stone 6 năm trước cách đây
mục cha
commit
06be3e8f2a
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      httpd/content.md

+ 7 - 1
httpd/content.md

@@ -36,7 +36,13 @@ $ docker run -dit --name my-apache-app -p 8080:80 -v "$PWD":/usr/local/apache2/h
 
 ### Configuration
 
-To customize the configuration of the httpd server, just `COPY` your custom configuration in as `/usr/local/apache2/conf/httpd.conf`.
+To customize the configuration of the httpd server, first obtain the upstream default configuration from the container:
+
+```console
+$ docker run --rm %%IMAGE%%:2.4 cat /usr/local/apache2/conf/httpd.conf > my-httpd.conf
+```
+
+You can then `COPY` your custom configuration in as `/usr/local/apache2/conf/httpd.conf`:
 
 ```dockerfile
 FROM %%IMAGE%%:2.4