Skip to content

Instantly share code, notes, and snippets.



Last active Sep 6, 2019
What would you like to do?
rewrite to /index
server {
location / {
gzip on;
gzip_vary on;
gzip_min_length 10240;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
gzip_disable "MSIE [1-6]\.";
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;

This comment has been minimized.

Copy link
Owner Author

@gboddin gboddin commented Apr 26, 2019

Most used config in static hosting + rewrite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment