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.
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.