jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
The apache part looks likeuse CGI::Fast qw(:standard); $COUNTER = 0; while (new CGI::Fast) { print header; print start_html("Fast CGI Rocks"); print h1("Fast CGI Rocks"), "Invocation number ",b($COUNTER++), " PID ",b($$),".", hr; print end_html; }
Although the script runs fine, it doesn't count anything (its always zero). Also I cannot access things like $ENV{REMOTE_HOST}!LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so ScriptAlias /cgi-bin/ "/srv/perl/cgi-bin/" AddHandler fcgi-script .fcgi AddType application/x-httpd-fcgi .fcgi .... <VirtualHost *:80> ... <Directory /srv/perl/cgi-bin/> AllowOverride All <FilesMatch "\.fcgi$"> SetHandler cgi-script </FilesMatch> </Directory> ... </VirtaulHost>
thnx again!!SetHandler fcgid-script
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: fcgi script not working as expected (apache)
by moritz (Cardinal) on Dec 12, 2008 at 14:44 UTC | |
by jeanluca (Deacon) on Dec 12, 2008 at 15:23 UTC | |
|
Re: fcgi script not working as expected (apache)
by Anonymous Monk on Dec 12, 2008 at 14:55 UTC | |
|
Re: fcgi script not working as expected (apache)
by jeanluca (Deacon) on Dec 12, 2008 at 15:12 UTC | |
|
Re: fcgi script not working as expected (apache)
by Anonymous Monk on Dec 12, 2008 at 14:47 UTC |