Notes on Java, Solaris, PHP, LDAP…

May 13, 2008

How ScriptAlias confused me

Filed under: Java — negev @ 2:56 pm

As I don’t use CGI often, I have to read confusing Apache documentation and google everytime I configure them. Somehow it looked as a good idea to add ScriptAlias statement to my Apache2 vhost config. However, it didn’t help at all and it broke it down. So now I know: I don’t want to use it normally.

# Following line is BAD BAD, it makes CGI not work!
#ScriptAlias /cgi-bin/ “/Users/peterk/”

# Following works nicely
<Directory “/srv/www/vhosts/”>
Options FollowSymLinks ExecCGI
AddHandler cgi-script .cgi
AllowOverride All
Order allow,deny
Allow from all


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at

%d bloggers like this: