From 7a0c5d0a2bce64fff8cfd1c5e6582d81c651adf7 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 26 Sep 2014 14:24:21 -0600 Subject: [PATCH] Fix NGINX data path --- nginx/content.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/content.md b/nginx/content.md index e249c10ce..c95deb21e 100644 --- a/nginx/content.md +++ b/nginx/content.md @@ -8,12 +8,12 @@ Nginx (pronounced "engine-x") is an open source reverse proxy server for HTTP, H ## hosting some simple static content - docker run --name some-nginx -v /some/content:/usr/local/nginx/html:ro -d nginx + docker run --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d nginx Alternatively, a simple `Dockerfile` can be used to generate a new image that includes the necessary content (which is a much cleaner solution than the bind mount above): FROM nginx - COPY static-html-directory /usr/local/nginx/html + COPY static-html-directory /usr/share/nginx/html Place this file in the same directory as your directory of content ("static-html-directory"), run `docker build -t some-content-nginx .`, then start your container: