Nginx-Lua-Anti-DDoS icon indicating copy to clipboard operation
Nginx-Lua-Anti-DDoS copied to clipboard

Getting error 404 when loading module .

Open c0deless opened this issue 4 years ago • 0 comments

Issue title

Issue Description

Hello when I included module , tried Nginx.conf / website conf / location block. Always same error .

Okey find out I had to specify location of the file but now . Strange issue when page load it download the website content . named as "download" I think its because im using a trick to rename my html file to no extension . location block : (location / { try_files $uri $uri/ @htmlext; }

location ~ \.html$ {
    try_files $uri =404;
}

location @htmlext {
    rewrite ^(.*)$ $1.html last;)

c0deless avatar Oct 05 '20 19:10 c0deless