Category : fallback

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 / { index index.php index.html; #works with index.php index.html } location ~ .php$ { include ..

Read more