Environment Variable to specify configuration location for use in WGSI servers #61
Labels
enhancement
New feature or request
someday
Not planned to do in the near future, mostly due to limited resources
I was thinking of using mod_wsgi to host PyWebScrapBook via my Apache server but the only way to configure scripts in mod_wsgi is by using Environment Variables.
From looking at the documentation for PyWebScrapBook, it appears that the only places it supports for a configuration location is the script directory, the working directory or the user's home directory.
For security reasons, the script location and web server user home directory will usually only allow write access for the root user.
As for the working directory, as the mod_wsgi documentation on the working directory, says "When Apache is started it is typically run such that the current working directory for the application is the root directory, although the actual directory may vary dependent on the system or any extra security system in place." thus using the working directory is not a reliable way to specify a configuration location.
So it appears the best way of getting a configuration location when using a WSGI server like mod_wsgi would be allow setting the configuration location via an Environment Variable.
The text was updated successfully, but these errors were encountered: