Re: Content negotiation in Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 11:35 12/27/2003, you wrote:
> Rather than
> creating a .var file for _every_ resource I want to have mapped, I would
> much rather have Apache know always to serve up PHP preferably, HTML if PHP
> is not available, and TXT files as a last resort.

I think you can achieve this by reordering the DirectoryIndex entries.

Thanks for the tip.


Note, however, that I am not searching for how to do this for the index page... that works already and works well. What I'd like is to have my "news" page, and have Apache search for news.php, news.html, or news.txt (in that order) and serve up the first one it finds.


-- Rodolfo J. Paiz rpaiz@xxxxxxxxxxxxxx http://www.simpaticus.com


-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux