Re: [Hampshire] apache2 CGI script problem

Top Page

Reply to this message
Author: Victor Churchill
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] apache2 CGI script problem
> I have been trying to set up a virtual server with webmin to run Perl
> GCI scripts from my home directory. The virtual server works, up
> to a point:
>
> The browser displays directory listings
>
> The browser displays html files
>
> The browser displays cgi files: not what it should do, I want it to
> run them and display the results.
>
> For the directory concerned, webmin lists the directives thus:
>
> allow from all                                /etc/apache2/apache2.conf (673)
> Options ExecCGI Indexes                       /etc/apache2/apache2.conf (674)
> AddHandler perl-script .cgi                   /etc/apache2/apache2.conf (675)

>


... presumably the files are called <scriptname>.cgi ?

I'm afraid that I've always done it the other way, using "ScriptAlias
aDirectoryName" and putting scripts in their own directory. But then
you would not be able to host html files in the same directory.