Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Beatnik (493)

  (email not shown publicly)

A 29 year old belgian who likes Mountain Dew, Girl Scout Cookies, Tim Hortons French Vanilla Flavoured Cappucinno, Belgian beer, Belgian chocolate, Belgian women, Magners Cider, chocolate chipped cookies and Perl. Likes snowboarding, snorkling, sailing and silence. Bach can really cheer him up! He still misses his dog.

Project Daddy of Spine [], a mod_perl based CMS.

In his superhero time (8.30 AM to 5.30 PM), he works on world peace.

Journal of Beatnik (493)

Thursday March 15, 2007
03:25 PM

mod_rewrite notes: cgi-bin translating

[ #32700 ]
In modules.conf:

LoadModule rewrite_module /usr/lib/apache/1.3/
AddModule mod_rewrite.c

In httpd.conf (for debugging purposes):

RewriteLog /var/log/apache-perl/rewrite_log
RewriteLogLevel 9

. In a .htaccess file in your main document root:

RewriteEngine On
RewriteBase /
RewriteRule ^directory/(.*) cgi-bin/script?args=$1 [L]

This took me a while to figure out.. and it isn't perfect ofcourse. Consider directory to be the virtual directory you wish to use.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.