All pastes #126306 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-08-11 09:50 UTC
rendered paste body
<VirtualHost *:80>
    ServerName XXXXX.tld
    DocumentRoot XXXXX

<Directory /var/www/Document_Root>
        AllowOverride AuthConfig FileInfo Limit
        Options +ndexes SymLinksIfOwnerMatch
</Directory>


    RewriteEngine on
    RewriteRule ^/inc/ - [L]
    RewriteRule /([a-z0-9:]+)/([a-z0-9:]+)/([a-z0-9:]+) /index.php?1=$1&2=$2&3=$3 [L]
    RewriteRule /([a-z0-9:]+)/([a-z0-9:]+) /index.php?1=$1&2=$2 [L]
    RewriteRule /([a-z0-9:]+) /index.php?1=$1 [L]

        AccessFileName .htaccess

        #
        # The following lines prevent .htaccess and .htpasswd files from being
        # viewed by Web clients.
        #
        <FilesMatch "^\.ht">
            Order allow,deny
            Deny from all
        </FilesMatch>
# put "Options -Indexes" inside a .htacces in the path you wouldn't have browseable

</VirtualHost>