From: Rick DeNatale Date: 2006-10-10T04:05:58+09:00 Subject: Re: Setting up simple CGI on Ubuntu On 10/6/06, Trans wrote: > > Rick DeNatale wrote: > > On 10/5/06, Trans wrote: > > > > > > TRANS wrote: > > > > I've done all this numerous times before but, sigh, apparently I'm > > > > forgetting something. I'm just trying to serve up a straight CGI > > > > script, nothing fancy. > > > > > > > > Running Ubuntu Apache2: > > > > > > > > > > > > #SetEnv RAILS_ENV development > > > > ServerName lilwiki > > > > DocumentRoot /serve/www/lilwiki/ > > > > ErrorLog /home/trans/file/projects/PsyTower/lilwiki/log/apache.log > > > > > > > > > > > > Options +ExecCGI +FollowSymLinks > > > > AddHandler cgi-script .rbx > > > > AllowOverride all > > > > Order allow,deny > > > > Allow from all > > > > > > > > > > > > > > > > By all accounts (I just spent the last 40 minutes seaching the web and > > > > mailing-list) the above should be all I need. But all it does is serve > > > > up .rbx files as plain text --it doesn't execute them. What am I missing? > > > > > > It's always some stupid little thing: > > > > > > AddHandler cgi-script .rbx > > > > > > Needs to be in the VirtualHost body, not the Directory body. Lovely, no > > > warnings, no errors. nothing. Just doesn't work. Five hours wasted on > > > dribble. Yep that's about par for Me and Apache configuration. Ergh... > > > > Well according to the apache documentation, AddHandler can be in the > > following contexts: server config, virtual host, directory, .htaccess > > > > On the other hand, I'm not sure how you are getting from your document root > > > > /serve/www/lilwiki/ > > > > to > > > > /home/trans/file/projects/PsyTower/lilwiki/public/ > > > > in the absense of any apparent Alias directive or anything else which > > would cause Apache to look there. > > Hmm... yea, guess that looks odd. But it's just a symlink. > > /serve/www/lilwiki/ => > /home/trans/file/projects/PsyTower/lilwiki/public/ I suspected that, and I also suspect that Apache is completely aware of the link and only knows about /serve/www/lilwiki, so the Directory directive never has any effect. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/