apache .htaccess to lighttpd

Discussion in 'Apache' started by jakjak01, May 5, 2012.

  1. #1
    i really appreciate if some one can convert those htaccess to lighttpd


    
    Options +SymLinksIfOwnerMatch
    DirectoryIndex index.html
    Options All -Indexes
    Options -Includes -IncludesNOEXEC -ExecCGI
    RemoveHandler cgi-script .pl .py .cgi
    RemoveType php
    
    
    <IfModule sapi_apache2.c>
    	php_flag engine off
    </IfModule>
    <IfModule mod_php4.c>
    	php_flag engine off
    </IfModule>
    <IfModule mod_php5.c>
    	php_flag engine off
    </IfModule>
    
    
    <FilesMatch "\.(htaccess|htpasswd|sh)$">
     Order Allow,Deny
     Deny from all
    </FilesMatch>
    
    
    <IfModule mod_headers.c>
    Header unset Content-Type
    Header unset Content-Disposition
    Header set Content-Disposition attachment
    Header set Content-Type application/octet-stream
    Header add Content-Type application/force-download
    Header add Content-Type application/download
    Header unset Content-Transfer-Encoding
    Header set Content-Transfer-Encoding binary
    </IfModule>
    
    
    
    Code (markup):

    
    RewriteEngine on
    RewriteCond %{REMOTE_ADDR} !^190\.92
    RewriteRule ^.*$ "http://xxxx.com/404.html?http://xxxx.com/okpxw8c823gq/video.mp4.html"
    
    Code (markup):
     
    jakjak01, May 5, 2012 IP