Summit of SummitsReturn to the Source
Override the default lazysite.conf location using a command-line
argument or environment variable. Useful for staging environments,
testing alternate configs, or deployments where the conf lives
outside the docroot.
Most sites do not need this. Each Apache vhost has its own
DOCUMENT_ROOT, so each site automatically gets its own
lazysite.conf at DOCROOT/lazysite/lazysite.conf. Multiple
sites on one server each have their own docroot and their own
config - no override is needed.
--conf PATH command-line argument (highest priority)LAZYSITE_CONF environment variableDOCROOT/lazysite/lazysite.confCommand-line:
perl cgi-bin/lazysite-processor.pl --conf /path/to/custom.conf
Environment variable:
LAZYSITE_CONF=/path/to/custom.conf
Test with a different configuration:
LAZYSITE_CONF=/tmp/test.conf \
DOCUMENT_ROOT=/var/www/html \
REDIRECT_URL=/index \
perl cgi-bin/lazysite-processor.pl
resolve_site_vars returns early)--conf argument requires the path as the next argument
(space-separated, not =)