Yup...the problem is that you have the document root at /home/tss/cgi-bin, 
to start with...adding the ScriptAlias line makes Apache think that the 
cgi-bin directory for that will have a URL of /home/tss/cgi-bin/tss/cgi-bin.

On Mon, 8 Apr 2002, Stephen Spalding wrote:

> 
> 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



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to