it seems that apache will do the same.
nginxserver
linux
personal website, there is no problem with index page refresh, but entering other page refresh will be gg.
http://leisuremoment.com/
it seems that apache will do the same.
nginxserver
linux
personal website, there is no problem with index page refresh, but entering other page refresh will be gg.
http://leisuremoment.com/
first check whether index.html exists in the web root directory, and then check the conf.d of nginx
-sharp
root /var/www/html;
location / {
-sharp
index index.html index.htm;
}
try_files is not written in the configuration, is it?
< hr >look at the configuration and talk about some problems found:
rewrite ^ / (. *) http://www.leisuremoment.com/$1 permanent;
and try_files
do not use together. The latter is to solve (optimize) the former, so that we can use it together. try_files / var/www/html/index.html;
, the root directory has been located with root before, but what comes out is actually based on the root directory, so it would be wrong to enter more sets of complete paths. try_files
Let's write try_files $uri $uri/ / index.html;
first this paragraph:
you post your nginx
configuration information, and then release the url
you visit, and you can figure out what the problem is
.
Previous: There is a hint of a security vulnerability after the github is submitted.
Next: The picture generated by the GD library comes with a black border when cutting the circle.