Hello,
I have the following configuration in httpd.conf:
location "/books/*" {
fastcgi socket "/run/tcl.sock"
directory { index "index.tcl" }
}
When I put the URL into my browser https://localhost/books/ I get a 500
Internal Server Error. Looking at the slowcgi logs, I see the following
being set:
2023-08-19 08:35:18.157737500 slowcgi: env[2],
SCRIPT_FILENAME=/vhosts/ssl/books/
...
2023-08-19 08:35:18.157950500 slowcgi: fork: /vhosts/ssl/books/
2023-08-19 08:35:18.158928500 slowcgi: wait: /vhosts/ssl/books/
And in the httpd log I find:
slowcgi: execve /vhosts/ssl/books/: Permission denied
I notice that if I put the full URL in my browser as
https://localhost/books/index.html it works fine as can be seen from
this log entry:
2023-08-19 08:38:58.806406500 slowcgi: env[2],
SCRIPT_FILENAME=/vhosts/ssl/books/index.tcl
Is there some confirmation I'm missing to make httpd construct the
SCRIPT_FILENAME properly when using a directory index?
Also, I notice that if I put the URL https://localhost/books/bogus.html
I don't get a 404 or 403 but instead get a 500 and the SCRIPT_FILENAME
is again set to /vhosts/ssl/books. I suspect there's something missing
in my reading of the man page.
Thanks,
Andy