Changeset 1292

Show
Ignore:
Timestamp:
11/11/07 16:18:47 (6 years ago)
Author:
tokuhirom
Message:

sledge-starter: なんか htdocs がイマイチなのと,えらーはんどりんぐヲナオシア。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/misc/sledge-starter/sledge-starter.pl

    r1272 r1292  
    122122        case '/' { 
    123123            return {controller => '<% proj %>::C::Root', page => 'index'}; 
     124        } 
     125        else { 
     126            die "unknown path: $path"; 
    124127        } 
    125128    } 
     
    192195    { 
    193196        fcgi_path => 
    194           File::Spec->catfile( $FindBin::Bin, '<% proj | lower %>.fcgi' ) 
     197          File::Spec->catfile( $FindBin::Bin, '<% proj | lower %>.fcgi' ), 
     198        htdocs_path => 
     199          File::Spec->catfile( $FindBin::Bin, '..', 'htdocs' ), 
    195200    }, 
    196201    $fh 
     
    200205 
    201206__END__ 
    202 server.document-root = "htdocs" 
     207server.document-root = "[% htdocs_path %]" 
    203208server.port = 1192 
    204209 
     
    206211    "mod_fastcgi", 
    207212    "mod_setenv", 
     213) 
     214 
     215mimetype.assign = ( 
     216    "css" => "text/css", 
    208217) 
    209218