Nginx module template enhancement

For php websites the index command in the .config/templates/vhost-nginx.conf template does not list index.php as a possible index file. Causing a php-vhost to display “forbidden” or the directory listing and forcing the user to manually include /index.php in de site URL.

This code change makes it work:
line 10 under “location /” file .config/templates/vhost-nginx.conf

        index  index.html index.htm {% if PhpVersion %}index.php{% endif %};
3 Likes