How-to: Change the CGI interpreter to a different version
By default, the server looks for default interpreters in /usr/bin/ and /bin/. If however you want to use a different version of the interpreters (such as a specific version of Python or Bash), you can modify the CGI interpreter path in the configuration file on a per-location basis.
- Open your configuration file.
- Locate the location block you want to tweak.
- Change the
cgi_interpreterdirective to point to your desired interpreter path. - rerun the server with the updated configuration file.