Last active
November 30, 2016 16:37
-
-
Save eftakhairul/908052bf3bce67c8b5e7 to your computer and use it in GitHub Desktop.
ngix-html-angular-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 staging.io; | |
listen 80; | |
access_log /var/log/nginx/staging.io.access.log; | |
error_log /var/log/nginx/staging.io.error.log; | |
root /home/app/snap-ui/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