Welcome! Log In Create A New Profile

Advanced

Always load index.html

Posted by x00r 
Always load index.html
June 26, 2014 09:01AM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 234
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready