Skip to content

Instantly share code, notes, and snippets.

@jashank
Created July 11, 2012 07:36
Show Gist options
  • Save jashank/3088756 to your computer and use it in GitHub Desktop.
Save jashank/3088756 to your computer and use it in GitHub Desktop.
Apache config
Options +FollowSymLinks
AddHandler cgi-script .cgi
AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ dispatch.cgi?/$1 [QSA,L]
# nicked from gportal, patched for Tingle
#RewriteRule ^Settings\..+$ index.pl?/$1 [L]
#RewriteCond %{REQUEST_URI} !\.(css|ico|js|png)$
#RewriteRule ^(.*)$ index.pl?/$1 [L]
<VirtualHost *:80>
ServerName dev.pondr.net
ServerAdmin jashank@localhost
DocumentRoot "/Users/jashank/pondr/serv"
<Directory "/Users/jashank/pondr/serv">
AllowOverride All
Order Deny,Allow
Deny from All
Allow from localhost
Allow from 192.168.123
AddHandler cgi-script .pl
Options ExecCGI
</Directory>
SetEnv NYTPROF 'file=/tmp/nytprof.out'
PerlPassEnv NYTPROF
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment