Sign inSign up

marcbachmann/static-server

By marcbachmann

Updated almost 11 years ago

Image
0

2.0K

marcbachmann/static-server repository overview

Serve static pages based on the host header

docker pull marcbachmann/static-server
docker run -v $(pwd):/public -e SERVE_DIRECTORY=/public marcbachmann/static-server
HOST: example.com

Will result in serving /public/example.com
Ports are ignored. So example:8080 results in /public/example

If you're using a load balancer, you can pass TRUST_PROXY=loopback
docker run -v $(pwd):/public -e TRUST_PROXY=true marcbachmann/node-static

Tag summary

Content type

Image

Digest

sha256:eb72a1787

Size

139.3 MB

Last updated

almost 11 years ago

docker pull marcbachmann/static-server