Re: Content negotiation in Apache

From: Rodolfo J. Paiz (rpaiz_at_simpaticus.com)
Date: 12/27/03

  • Next message: Leonard den Ottolander: "Re: Content negotiation in Apache"
    To: redhat-list@redhat.com
    Date: Sat, 27 Dec 2003 13:09:56 -0600
    
    

    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@simpaticus.com
    http://www.simpaticus.com
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Leonard den Ottolander: "Re: Content negotiation in Apache"

    Relevant Pages

    • PHP5 on Windows - Problems with Extensions
      ... new install of Apache 2 and PHP5 on Windows XP ... The server and PHP both work fine, I can serve pages and a test script ...
      (alt.php)
    • Re: phpmyadmin
      ... However, I took the php script I used earlier to connect to mysql, added the phpinfofunction to the bottom of the page, copied it to /usr/share/phpmyadmin and Apache served the page. ... That Apache will not serve up any of the phpmyadmin php pages but will serve up other php pages located in the same directory just seems plain old bizarre to me. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)
    • Re: loaded latest edition of Apache http server on XP, and installed php on that server...
      ... look for files when asked to serve them) in your "httpd" configuration ... AddType application/x-httpd-php .php ... my browser, but then an error message came up, shutting down apache. ...
      (comp.lang.php)
    • Help with php5 install under windows
      ... This includes moving php from the ... Enable the PHP scripting language engine under Apache. ... or per-virtualhost web server configuration file. ... The PHP directives register_globals, ...
      (php.general)
    • RE: Virtual hosts and PHP "downloads": php5 and apache22 on FreeBSD6.1-STABLE
      ... Apache web server. ... Subject: Virtual hosts and PHP "downloads": php5 and apache22 on ...
      (freebsd-questions)