Answer the question
In order to leave comments, you need to log in
Serve files as html regardless of extension, nginx, how?
How to configure nginx to serve files without extension as html and not as plain text data?
Answer the question
In order to leave comments, you need to log in
http {
default_type text/html;
First, you describe the locations in the usual way, in which you specify how to handle different paths on the site.
After the usual locations at the very end, you make the following location:
location ~ /*\.(.*) {
root "/var/www/path_to_site/";
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question