Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<VirtualHost *> WSGIScriptAliasMatch ^/wsgi/([^/]+) /home/eric/Desktop/python-www/$1.wsgi ServerName localhost DocumentRoot /home/eric/Desktop/www Alias /project /home/eric/Desktop/www/project/pub <Directory "/home/eric/Desktop/www/project/pub"> DirectoryIndex index.php Options -MultiViews -Indexes <IfDefine APACHE2> AcceptPathInfo On </IfDefine> <IfModule mod_rewrite.c> # enable rewrite engine RewriteEngine On # ********** THIS IS THE ONLY SETTING YOU SHOULD HAVE TO CHANGE ********** # RewriteBase /project/pub/ # e.g. RewriteBase /~dzuelke/_projects/agavi/trunk/samples/pub/ # usually just "/" if your application's pub dir is the document root # if requested url does not exist (i.e. it's likely an agavi route), pass it as path info to index.php RewriteRule ^$ /project/pub/index.php?/ [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) /project/pub/index.php?/$1 [QSA,L] </IfModule> </Directory> </Virtualhost>
This paste will be private.
From the Design Piracy series on my blog: