<div dir="ltr">Hi!<div><br></div><div>I'm a little bit lost now, since various configurations tried just dont work. None of them.</div><div><br></div><div>I have:</div><div><br></div><div>server {<br>    listen 443 default_server ssl;<br>    listen [::]:443 default_server ssl;<br><br>    server_name nc409.my.domain;<br>    root /var/www;<br>    index index.sh index.html;<br><br>    location /chrony {<br>        try_files $uri $uri/ $uri/ index.sh;<br>    }<br><br>    location ~ "index\.sh"$ {<br>        gzip off;<br>        fastcgi_pass unix:/var/run/fcgiwrap.socket;<br>        include /etc/nginx/fastcgi_params;<br>        fastcgi_param DOCUMENT_ROOT $document_root;<br>        fastcgi_param SCRIPT_FILENAME $request_filename;<br>    }<br><br>}<br><div><br></div><div>With <a href="https://nc409.my.domain/">https://nc409.my.domain/</a> it gives an empty page (this is intended).</div><div>With <a href="https://nc409.my.domain/chrony">https://nc409.my.domain/chrony</a> it gives 404-not found.</div><div>With <a href="https://nc409.my.domain/chrony/">https://nc409.my.domain/chrony/</a> it gives 404-not found.</div><div>With <a href="https://nc409.my.domain/chrony/index.sh">https://nc409.my.domain/chrony/index.sh</a> it gives 403 Forbidden.</div><div><br></div><div>If i am looking at the debug logs all seems OK: nginx feeds /var/www/chrony/index.sh to fcgiwraper. /var/www/chrony/index.sh is allowed to be executed by all. group is root, owner is root. Only the owner is allowed to write the file. All others are allowed to execute it.<br><br>My first question: why doesn't nginx:</div><div><a href="https://nc409.my.domain/chrony">https://nc409.my.domain/chrony</a> -> <a href="https://nc409.my.domain/chrony/index.sh">https://nc409.my.domain/chrony/index.sh</a></div><div><a href="https://nc409.my.domain/chrony/">https://nc409.my.domain/chrony/</a> -> <a href="https://nc409.my.domain/chrony/index.sh">https://nc409.my.domain/chrony/index.sh</a></div><div><a href="https://nc409.my.domain/chrony/index.sh">https://nc409.my.domain/chrony/index.sh</a> -> <a href="https://nc409.my.domain/chrony/index.sh">https://nc409.my.domain/chrony/index.sh</a></div><div><a href="https://nc409.my.domain/chrony/index.css">https://nc409.my.domain/chrony/index.css</a> -> <a href="https://nc409.my.domain/chrony/index.css">https://nc409.my.domain/chrony/index.css</a></div><div><br></div><div>feeding index.sh to fcgiwraper and delivering index.css directly? And how do I have to set up this thing to do exactly that?</div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Thomas</div></div></div></div>