Hello all,

I'm trying to set up an apache virtual host, and I'm almost there. I've got a host name pointing to a URL which seems to be working just fine, but the problem is that it's a cgi script and my browser is not executing it, it's displaying the code. Here's what the code of the cgi script:

# cat main_page.pl

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello!<BR>\n";

Here's my VirtualHost directive in /etc/httpd/conf/httpd.conf:

<VirtualHost tssdev>
ServerAdmin sspalding@groupwise
ScriptAlias /tss/cgi-bin/ "/home/tss/cgi-bin/"
DocumentRoot /home/tss/cgi-bin
ServerName tssdev
ErrorLog /home/tss/logs/tss.error
TransferLog /home/tss/logs/tss.access
<Directory /home/tss/cgi-bin>
    Options +ExecCGI indexes
    AllowOverride None
    DirectoryIndex main_page.pl
    order allow,deny
    allow from all
</Directory>
</VirtualHost>

Any ideas?

Thanks!

-Stephen Spalding



Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax

Reply via email to