I have a question about the structure of a site on apache.
I put my cgi executables on cgi-bin Sometimes scripts need things like conf files or templates.. I've been letting users configure where needed files might be. For example, a generic login script expects by default to have a template file in
$ENV{DOCUMENT_ROOT}/.templates/login.html but it can be overridden. etc. The idea is that the scripts will by default expect things to be in predetermined places- kinda like unix that expects logs to be in /var/logs and conf to be in /etc/whatever - This is just proving tough on hosting accounts.Keeping track of scripts and where their files are expected to be is proving painful. Installation and update is proving painful.
I was considering having the script, conf files, templates, db whatever all in one directory under cgi-bin. Ala windows.. isn't it? - is that bad juju?
In reply to cgi apps, is it bad juju to pile program and conf file, template, etc under one directory in cgi-bin? by leocharre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |