title: CGI : 502 Bad Gateway The CGI was not CGI/1.1 compliant.
body: <p>I have a form in an HTM page that, after pressing the submit button, calls the index.cgi !</p>
  
  <pre><code>#!/usr/bin/sh
  
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/nastools/pysqlite2/pysqlite2
  export PYTHONPATH=$PYTHONPATH:/nastools/pysqlite2/:/path/impo
  export PATH=/nastools/python64/bin/:$PATH
  
  python /remote/path/impo/manager.py 2&gt;&amp;1
  </code></pre>
  
  <p>I just want to run the manager.py that is stored in folder /remote/path/impo !! </p>
  
  <p>I am totally going crazy with this stupid error and cannot find the way to solve it ...</p>
  
  <p>Any suggestion ??</p>