[TAG] Two-cent tip for Linux Gazette
ben at linuxgazette.net
Fri Sep 12 19:24:09 MSD 2008
On Fri, Sep 12, 2008 at 03:49:51PM +0100, Martin J Hooper wrote:
> Silas S. Brown wrote:
> > But we can go one up on that - the following short script will
> > list the contents of the directory, with an optional "download
> > as zip" link that sets the filename appropriately. If you're
> > using the small Mathopd webserver, you can edit
> > /etc/mathopd.conf and set AutoIndexCommand to the path of this
> > script:
> Can you do this on Apache2? I'm presuming that you can
> somehow... Not really an expert on configuring web servers!
Of course. It's not really server dependent - any server that can
interpret CGI and has Bash installed should be able to handle it.
> Plus getting my server to run CGI scripts too.
You need to read up on the "Options" directive and the 'ExecCGI'
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *
More information about the TAG