Sure. I would add this block to the top of the nginx default site file:
server {
listen 443 ssl deferred;
root /usr/share/nginx/html;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404. try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
}
Sure. I would add this block to the top of the nginx default site file:
server {
listen 443 ssl deferred;
root /usr/share/ nginx/html;
index index.html index.htm;
# Make site accessible from http:// localhost/
server_name localhost;
location / {
try_files $uri $uri/ =404; naxsi.rules
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
# Uncomment to enable naxsi on this location
# include /etc/nginx/
}
}