Category: fallback

Nginx configuration for index.php with fallback to index.html and serving static files

I have a configuration that works for simple index.php and index.html files in such a way that when I request localhost/ firstly index.php is served and if not preset then index.html is served. server { listen 0.0.0.0:80; root /usr/share/nginx/html/public; location…