Created
May 17, 2023 14:11
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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