disable PHP in folder, lighttpd

Discussion in 'Server Operation' started by TheRudy, May 26, 2008.

  1. TheRudy

    TheRudy ISPConfig Developer ISPConfig Developer

    Hey

    I'm looking for something similar to .htaccess stuff:
    Code:
    RemoveType application/x-httpd-php php
    AddType text/html php
    Basically i want to disable PHP in folder..

    Edit: Removed bunch of crap that didn't work..
     
    Last edited: May 26, 2008
  2. falko

    falko Super Moderator ISPConfig Developer

    Maybe something like this works (for the folder files):

    Code:
    $HTTP["url"] =~ "^/files($|/)" { 
    fastcgi.server = ( ".php" => ((
                           "bin-path" => "",
                           "socket" => ""
                      )))
     }
     
  3. TheRudy

    TheRudy ISPConfig Developer ISPConfig Developer

    Tried similar to your idea and none work. It just disables whole page. No error shown in FF just "Problem loading page".
     
    Last edited: May 27, 2008
  4. TheRudy

    TheRudy ISPConfig Developer ISPConfig Developer

    This seems to do the trick
    Code:
    $HTTP["url"] =~ "^/files" {
        fastcgi.server = ()
    }
    
     

Share This Page