On Fri, 19 Oct 2018, [email protected] wrote:

How do I allow index.html or index.php and not just one or the other?

I found if I create a Directory section for subdirectories of the document root that I can explicitly set the DirectoryIndex for each subdirectory, but that's a pain. I'm running multiple sites and multiple document roots on Apache 2.4.34 custom compiled.

The documentation is pretty clear about how to allow different index pages.

  https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex

In your case,

  DirectoryIndex index.html index.php

Or you can flip-flop them, depending on your priorities.


--
Paul Heinlein
[email protected]
45°38' N, 122°6' W
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to