Settingan Config
Settingan Config
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#a
# include snippets/snakeoil.conf;
add_header X-Frame-Options DENY;
add_header Strict-Transport-Security "max-age=31536000";
root /etc/nginx/build2;
server_name _;
location / {
index index.html;
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.html;
}
- lalu sudo service nginx start