Skip to content

Instantly share code, notes, and snippets.

@matzar
Created May 17, 2023 14:11
Show Gist options
  • Save matzar/6f7f55a7ced02bf095852d261f2ae36c to your computer and use it in GitHub Desktop.
Save matzar/6f7f55a7ced02bf095852d261f2ae36c to your computer and use it in GitHub Desktop.
This nginx.conf file configures an NGINX server to listen on port 8100 on localhost, serving static files from /usr/share/nginx/html and routing all requests to index.html if a specific file or directory is not found.
server {
listen 8100;
server_name localhost;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ /index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment