Running Applescript CGIs with Apache
BBEdit Language Module for Apache Config Files
John Grubers Language Module for BBEdit 8 for Apache Config Files{/link
CGIwrap + mod_rewrite
Simple rule to rewrite cgiwrap cgis:
RewriteRule ^/cgi/(.*) /cgi-bin/cgiwrap/rwilcox/$1.cgi ["PT"] RewriteRule ^/cgid/(.*) /cgi-bin/cgiwrapd/rwilcox/$1.cgi ["PT"]
Will take a url like http://www.example.com/cgi/login and turn it into http://www.example.com/cgi-bin/cgiwrap/rwilcox/login.cgi
Proxying and seeing client's IP Address
If yo use mod_proxy (or a P rewrite rule), you'll find that the REMOTE_ADDR enviromental variable is the address of the machine doing the proxying (instead of the IP address of the user doing the viewing).
There are ways to get around that.
#1: On Apache 2 you can use ProxyPreserveHost. End of story.
#2: On Apache 1.3.2+ you can use the ProxyVia directive, which puts information into HTTP_X_FORWARDED_FOR, HTTP_X_FORWARDED_HOST, and HTTP_X_FORWARDED_SERVER. You want HTTP_X_FORWARDED_FOR for the IP address.
Protecting CVS or .svn Folders
You don't want visitors where they don't belong - including whatever source control system you might use to manage your site.
In your VirtualHost or global configuration section of your web server:
<DirectoryMatch CVS/> Order deny,allow deny from all </DirectoryMatch>