Weird Apache errors

Context: You’ve recently switched to apache2 with separate vhost configurations in sites-enabled and you are trying to get CGI scripts to execute in a directory called something other than “cgi-bin“.  You’ve turned on the ExecCGI option for the directory.

Symptom: You are getting “Access Forbidden” errors, and your server’s error log shows “Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden

Further context: You’re not running any RewriteRules.

Solution: Uncomment the line AddHandler cgi-script .cgi in your main apache2.conf file.

Reason this is the error you get: Hell if I know.

In closely related news, ScotchFinder is back.

Your ad here for US$1/month.  Find out how.


Leave a Reply, but read first

  1. Feel free to leave replies even to very old posts.
  2. You have pretty much free rein to write whatever you like.  Just make it contentful and it will probably stay, even if you are abusing me.  Just:
  3. Don't bother spamming.  Your links are automatically tagged "nofollow".  You won't increase your Google rating.  Nobody will click them anyway.  Save us both some time.
  4. Advertising Policy: The URL field is for personal blogs, not commercial enterprises.  Have a valid website or product to advertise?  Those do get clicked, and it's cheap.  Click here to advertise.  Otherwise, your URL is subject to deletion at editor's discretion.