Nginx - running python, bash script
<p>I have an nginx server with the configuration I want to be able to develop with a new address "hooks.devel.nclab.com" (vim /etc/nginx/sites-available/devel.nclab.com):</p>

<pre><code>server {
    listen 443 ssl;
    ssl_certificate        /etc/nginx/ssl-keys/devel.nclab.crt;
    ssl_certificate_key    /etc/nginx/ssl-keys/devel.nclab.key;
    set $hook_home /home/labdevel/core/static/hooks;
    root $hook_home;
    server_name hooks.devel.nclab.com;

    location ~ (\.py|\.sh)${
        gzip off;
        root $hook_home;
        autoindex on;
        fastcgi_pass unix:/var/run/fcgiwrap.socket;
        include /etc/nginx/fastcgi_params;
        fastcgi_param DOCUMENT_ROOT $hook_home;
        fastcgi_param SCRIPT_FILENAME $hook_home$fastcgi_script_name;
    }
}
</code></pre>

<p>I've created a simple python file to the directory given as $hook_home as "hello.py".</p>

<pre><code>print "hello"
</code></pre>

<p>When I type "<a href="https://hooks.devel.nclab.com:443/hello.py" rel="nofollow">https://hooks.devel.nclab.com:443/hello.py</a>" in the browser and give my user and password it says: "404: Not Found".</p>

<p>Where do I mess up the code? </p>

<p>Thank you for your help in advance.</p>