Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Always load index.html

$
0
0
Dear forum members,

Please help with a silly question. How to always load index.html? When using php, i use this:

location /static/ {
if (!-e $request_filename) {
return 404;
}
}
location / {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /path/to/index.php;
}

Now i need the same setup, just without PHP... Google did not help. Is try_files the right way? I can not figure out how to use it properly to _always_ load index.php regardless of the url/path accessed.
Thank you very much.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>