#
# httpd.conf 
#    directives for Berylium2
#    (either serverwide or in virtual host container)
#    apache MUST be compiled with mod_rewrite!
#    $Id: berylium2-rewrite-rules,v 1.2 2003/06/09 18:51:05 csnyder Exp $
#
RewriteEngine on
RewriteLog /home/username/be2-rewrite.log
RewriteLogLevel 0

# exempt a few standard locations from be2 overlay
RewriteCond   %{REQUEST_FILENAME} ^/icons.+ [OR]
RewriteCond   %{REQUEST_FILENAME} ^/cgi-bin.+ [OR]
RewriteCond   %{REQUEST_FILENAME} ^/php-bin.+ [OR]
RewriteCond   %{REQUEST_FILENAME} ^/beryliu.+
RewriteRule   ^(.+)     $1 [PT,L]

# if requested file is not found in document_root, then pass the request to be2
RewriteCond   %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond   %{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index.html !-f
RewriteRule   ^/.+      /be2 [PT,L]

# force /be2 to be interpreted as php
<Location /be2 >
    ForceType application/x-httpd-php
</Location>
#
# end Berylium2 directives
#
