Project

General

Profile

Change index page if no index.php/html.... is in the dir to a .php file

Added by TechnoGuy over 16 years ago

Hi,

I have just recently switched from Apache to Lighttpd, and in Apache I had it set up so that when ever I would go to a directory and there was no index file in it, that it would load a php file instead of the default Apache index page.

So I was wondering if that is also possable with Lighttpd?

Does this have anything to do with it "index-file.names"...?

Any help will be appreciated.


Replies (4)

RE: Change index page if no index.php/html.... is in the dir to a .php file - Added by nitrox over 16 years ago

Yes, index-file.names defines for what files to look for in a directory as an index-page. But thats also documented in the wiki -> Index-file-names.Details

RE: Change index page if no index.php/html.... is in the dir to a .php file - Added by Olaf-van-der-Spek over 16 years ago

nitrox wrote:

Yes, index-file.names defines for what files to look for in a directory as an index-page. But thats also documented in the wiki -> Index-file-names.Details

I assume he wants to use something like /generate_index.php for every directory without an index. I don't think that can be done with index-file.names.

RE: Change index page if no index.php/html.... is in the dir to a .php file - Added by TechnoGuy over 16 years ago

Olaf-van-der-Spek wrote:

nitrox wrote:

Yes, index-file.names defines for what files to look for in a directory as an index-page. But thats also documented in the wiki -> Index-file-names.Details

I assume he wants to use something like /generate_index.php for every directory without an index. I don't think that can be done with index-file.names.

Yes thats what I want, so that it loads my own index.php for all directories so that I don't have to keep copying them in.

    (1-4/4)