All pastes #917106 Raw Edit

trollboy

public text v1 · immutable
#917106 ·published 2008-02-25 03:36 UTC
rendered paste body
trollboy@ubuntu:/etc/apache2/sites-enabled$ cat 000-default
<VirtualHost *>
        DocumentRoot /virtualhosts

        <Directory /virtualhosts>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
        </Directory>

        RewriteEngine on
        RewriteCond %{REQUEST_FILENAME} ^/icons/.*$
                RewriteRule .* - [L]
        RewriteCond %{SERVER_NAME} (\.|^)([^.]+)\.(shoggoth\.|localhost\.|ubuntu\.).+$ [NC]
                RewriteCond %{DOCUMENT_ROOT}/%2 -d
                        RewriteRule ^/?(.*)$ %{DOCUMENT_ROOT}/%2/www/$1 [L]
        RewriteRule ^/?(.*)$ %{DOCUMENT_ROOT}/subdomain/www/$1 [L]

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
        # 5 is the best for debugging, 0 when done with testing...
        RewriteLogLevel 0

        CustomLog /var/log/apache2/access.log combined
        ErrorLog /var/log/apache2/error.log
        RewriteLog /var/log/apache2/rewrite.log

        ServerSignature On
        ServerAdmin someone@example.com
</VirtualHost>
trollboy@ubuntu:/virtualhosts/shoggoth2/www$ cat .htaccess 
RewriteEngine on
RewriteRule .* ./index.php
php_flag magic_quotes_gpc off