Skip to content

Instantly share code, notes, and snippets.

@eftakhairul
Last active November 30, 2016 16:37
Show Gist options
  • Save eftakhairul/908052bf3bce67c8b5e7 to your computer and use it in GitHub Desktop.
Save eftakhairul/908052bf3bce67c8b5e7 to your computer and use it in GitHub Desktop.
ngix-html-angular-app
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