Skip to content

Instantly share code, notes, and snippets.

@Jaxmetalmax
Created March 11, 2023 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jaxmetalmax/b74459d85a5f4c195b7352240f22e808 to your computer and use it in GitHub Desktop.
Save Jaxmetalmax/b74459d85a5f4c195b7352240f22e808 to your computer and use it in GitHub Desktop.
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location ~ /\.git {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment