All pastes #709292 Raw Edit

Anonymous

public text v1 · immutable
#709292 ·published 2007-09-24 15:26 UTC
rendered paste body
 <VirtualHost *:80>
    <Directory /www/html/vhost/update.diil.no>
        Options FollowSymLinks
        AllowOverride None
    </Directory>

   <IfModule mod_php4.c>
       # If you are using Apache 2, you have to use <IfModule sapi_apache2.c>
       # instead of <IfModule mod_php4.c>.

        # some parts/addons might only run with safe mode off
        php_admin_flag safe_mode Off
        # security just in case
        php_admin_value register_globals    0
        # performance
        php_value magic_quotes_gpc  0
        # performance
        php_value magic_quotes_runtime  0
        #http://www.php.net/manual/en/ini.sect.language-options.php#ini.allow-call-time-pass-reference
        php_value allow_call_time_pass_reference 0
    </IfModule>

    # have fallback if mod_rewrite is not existent
    DirectoryIndex index.php

    <IfModule mod_rewrite.c>
        RewriteEngine On

#       RewriteCond %{HTTP_HOST}   !^www.diil\.no [NC]
#       RewriteCond %{HTTP_HOST}   !^$
#       RewriteRule ^/(.*)         http://diil.no/$1 [L,R]

        # Skippe de dir'ene vi synes den bor skippe (NB! Husk ALIAS lenger ned ogsa!!)
        RewriteCond %{REQUEST_URI} !(^/highscore|^/iris) [NC]

        # eZ publish >= 3.4.x :
        RewriteRule !(^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/extension/.*/design|^/kernel/setup/packages|^/packages|^/share/icons).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf)$ /index.php

    </IfModule>