Skip to content

Instantly share code, notes, and snippets.

@naviat
Created May 6, 2020 09:17
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 naviat/c82f1fd9016b7c6b9d595fef0b07b29e to your computer and use it in GitHub Desktop.
Save naviat/c82f1fd9016b7c6b9d595fef0b07b29e to your computer and use it in GitHub Desktop.
$ docker exec -it open-portal-v1 cat /etc/nginx/conf.d/default.conf
server {
listen 80;
server_name localhost;
location / {
try_files $uri $uri/ @rewrites;
root /usr/share/nginx/html;
index index.html index.htm;
}
location @rewrites {
rewrite ^(.+)$ /index.html last;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment