Project

General

Profile

Actions

Bug #316

closed

lighttpd wants me to download index.cml

Added by Anonymous over 19 years ago. Updated about 16 years ago.

Status:
Invalid
Priority:
Normal
Category:
mod_cml
Target version:
-
ASK QUESTIONS IN Forums:

Description

I'm running sarge and having difficulties enabling CML.

I installed lighttpd_1.4.3-1_i386.deb and enabled mod_cml and created a webpage for testing CML but when accessing http://localhost/index.cml the page is provided as a download instead of a webpage.
The file output.html is only created when calling trigger.php directly, not trough index.cml.

My current setup:

  • content of lighttpd.conf which isn't standard:
    server.modules = ( "mod_cml", "mod_access", "mod_fastcgi", "mod_accesslog" )
    server.indexfiles = ( "index.cml", "index.php", "index.html" )
    
  • contents of index.cml:
    output_contenttype = "text/html" 
    
    trigger_handler = "trigger.php" 
    
    -- this file updated by the trigger
    output_include = { "output.html" }
    
    docroot = request[DOCUMENT_ROOT]
    cwd = request[CWD]
    
    -- the dependencies
    files = { cwd .. "input.html" }
    
    cached_mtime = file_mtime(cwd .. "output.html")
    
    -- if one of the source files is newer than the generated files
    -- call the trigger
    for i,v in ipairs(files) do
      if file_mtime(v) > cached_mtime then return 1 end
    end
    
    return 0
    
  • contents of trigger.php:
    <?php
    
    $content = file_get_contents('input.html');
    file_put_contents('output.html', $content);
    
    ?>
    

-- mailmesuf

Actions #1

Updated by stbuehler over 16 years ago

  • Status changed from New to Fixed
  • Resolution set to wontfix

mod_cml is deprecated.

Actions #2

Updated by stbuehler over 16 years ago

  • Status changed from Fixed to Wontfix
Actions #3

Updated by stbuehler about 16 years ago

  • Patch available set to No
Actions #4

Updated by stbuehler about 16 years ago

  • Status changed from Wontfix to Invalid

You forgot to assign the extension:

cml.extension = ".cml"
Actions

Also available in: Atom