On 07/01/12 14:05, Ethan Rosenberg wrote:
1] Where should I put the CGI scripts that I write
2] Where should the Scriptalias be located and what should be its
structure.
3] How should I run my CGI scripts.

Assuming you have installed the "apache2" package, the configuration files are stored under /etc/apache2:

$ ls -aF -w 64 /etc/apache2
./            conf.d/     magic            ports.conf
../           envvars     mods-available/  sites-available/
apache2.conf  httpd.conf  mods-enabled/    sites-enabled/


The default host configuration is contained in /etc/apache2/sites-available/default:

$ ls -l /etc/apache2/sites-available/default
-rw-r--r-- 1 root root 692 Apr  1 00:13 /etc/apache2/sites-available/default


The default document root is /var/www :

$ grep DocumentRoot /etc/apache2/sites-available/default
        DocumentRoot /var/www


The default CGI directory is /usr/lib/cgi-bin/ :

$ grep ScriptAlias /etc/apache2/sites-available/default
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/


HTH,

David


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4ff0fdea.3030...@holgerdanske.com

Reply via email to