Nginx Conf
Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache.
nginx.conf
server {
listen 80;
server_name example.com;
root /var/www/html;
location / {
try_files $uri $uri/ =404;
}
error_page 404 /404.html;
# Restrict access to hidden files
location ~ /\. {
deny all;
}
}