Created
November 14, 2015 07:18
-
-
Save eftakhairul/4852ff60cd03c062c254 to your computer and use it in GitHub Desktop.
Basic configuration for HTML App
This file contains hidden or 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 { | |
server_name abc.com; | |
listen 80; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
root /home/app/html-app/dist; | |
index index.html index.htm; | |
location / { | |
try_files $uri /index.html; | |
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/.htpasswd; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment