https://github.com/zalari/docker-nginx-html5
Nginx-Image that enabled html5-url-modes for all the fancy SPAs out there!
https://github.com/zalari/docker-nginx-html5
Last synced: 3 months ago
JSON representation
Nginx-Image that enabled html5-url-modes for all the fancy SPAs out there!
- Host: GitHub
- URL: https://github.com/zalari/docker-nginx-html5
- Owner: zalari
- License: mit
- Created: 2017-03-02T10:50:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-10-28T11:54:33.000Z (over 6 years ago)
- Last Synced: 2025-12-28T00:59:41.249Z (6 months ago)
- Language: Dockerfile
- Size: 10.7 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## nginx-html5
This is a simple nginx image that enables html-5-mode style urls, by redirecting all request to a single file. This use case is typical for single page apps, that are doing all the routing on the client-side.
Configuration is _inspired_ by https://gist.github.com/cjus/b46a243ba610661a7efb .
## Example usage
This is image is intended to be used as a base image:
```
FROM zalari/nginx-html5
COPY ./app/dist /usr/share/nginx/html/
```
Of course no one can prevent you from using _evil_ bind-mounts for _/usr/share/nginx/html_ which is the document root.