Dear all,
I am running the latest opensuse with the default apache configuration.

Could you please tell me, in which file I can give the directive to the apache, if it will “server” by default .php files and not .html files

I would like to thank you in advance for your help


In /etc/apache2/httpd.conf look for this

# List of resources to look for when the client requests a directory
DirectoryIndex index.html index.html.var

Add index.php to the DirectoryIndex parameter (you would usually want index.php as well as index.html not instead of it so make it look something like this:

DirectoryIndex index.html index.html.var index.php

Personally I’ve never needed index.html.var so I usually take that one out, it’s there by default so there must be a reason for it, I just don’t know what it is