All pastes #632079 Raw Edit

Someone

public text v1 · immutable
#632079 ·published 2007-07-24 16:02 UTC
rendered paste body
        php_value zlib.output_compression       16384
        php_value zlib.output_compression_level 4

        php_value url_rewriter.tags             a=href,area=href,frame=src,input=src,form=action

    # These values do not change - bug in php
        php_value output_handler                NULL

    # php_flag does not work in older versions of php
        php_flag output_handler                 "NULL"
        php_flag short_open_tag                 "On"

    </Files>

# Execute perl scripts in cgi mode (so we can stream properly)
    <Files *.pl>
        SetHandler cgi-script
        Options    +ExecCGI
    </Files>

#
# The settings below relate specifically to mod_rewrite and the rewrite engine
# used to make the MythWeb user experience a little easier to deal with by
# simplifying the URL's neeced to access the various sections.  Do not touch
# these settings unless you really know what you're doing..
#

# Turn on the rewrite engine
    RewriteEngine  on

# If MythWeb is installed outside of the document root (eg. using Alias) then
# you will need to set this directive to the base URL that MythWeb is visible
# from externally.  If you do not, the web server will return 'not found'.  eg.
#    RewriteBase    /mythweb

# Skip out early if we've already been through rewrites,
# or if this is a /css/, /js/ or /cache/ directory request.
    RewriteRule    ^(css|data|images|js|themes|skins|[a-z_]+\.(php|pl))(/|$)     -     [L]

# Redirect /pl/ requests to the perl cgi handler.
    RewriteRule     ^(pl(/.*)?)$            mythweb.pl/$1               [QSA,L]

# Redirect most of the remaining URL requests to the main mythweb script.
# It will then handle any requests given to it.
    RewriteRule     ^(.+)$                  mythweb.php/$1              [QSA,L]

# If you're experiencing trouble with the previous two lines in your copy of
# apache, you could instead use something like:
#    RewriteRule     ^(pl(/.*)?)$           mythweb.pl?PATH_INFO=/$1    [L,QSA]
#    RewriteRule     ^(.+)$                 mythweb.php?PATH_INFO=/$1   [L,QSA]