Skip to content

samirelanduk/dynamic-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dynamic-nginx

To run normally, serving the contents of a folder called public on the host machine home directory:

$ docker run -p 80:80 -v /home/myusername/public:/usr/share/nginx/html samirelanduk/dynamic-nginx

To dynamically serve particular files:

$ docker run -p 80:80 -e "DYNAMIC_DOCUMENT_MYDOMAIN_COM=document.pdf" -v /home/myusername/public:/usr/share/nginx/html samirelanduk/dynamic-nginx

Now http://document.mydomain.com/ will serve document.pdf

About

A container for serving static files and aliasing hostnames to specific files.

Topics

Resources

Stars

Watchers

Forks