Skip to content

Instantly share code, notes, and snippets.

@eftakhairul
Created November 14, 2015 07:18
Show Gist options
  • Save eftakhairul/4852ff60cd03c062c254 to your computer and use it in GitHub Desktop.
Save eftakhairul/4852ff60cd03c062c254 to your computer and use it in GitHub Desktop.
Basic configuration for HTML App
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