Home > front end >  How nginx configuration pseudo static
How nginx configuration pseudo static

Time:12-24

Wants to hide the website. The HTML suffix make can't directly access only through a redirect page access, for example, I want to access/web/1. Visit the url of the HTML is to directly access/web/web/1/1. HTML to 403 how to make

I this configuration used alone can let go of all is conflict

The location/{
if (! - e $request_filename) {
Rewrite ^/(. *) $/$1. HTML last;
break;
}
}

//banned direct access.
of your HTML document# the location ~ * \. (HTML) ${
# deny all;
#}
  • Related