Wednesday, September 21, 2022

[FIXED] Where Is Apache's DirectoryIndex file: index.py

Issue

I feel like this question is pretty easy but I think I'm missing something. I want to understand more about Apache's (?site-enabled, virtual host, directory?). In my Directory I have DirectoryIndex /cgi-bin/index.py. Where is this file located?


Solution

Normally, the argument to DirectoryIndex is a relative path like "index.html" and it exists in the directory you're trying to access.

When the argument begins with a slash, the URL is converted to a file by the servers normal configuration -- things like DocumentRoot and ScriptAlias (since you have /cgi-bin/).

You should be able to determine from your Apache config where /cgi-bin/ is mapped to on the filesystem.

Note: this script is not part of httpd from the ASF.



Answered By - covener
Answer Checked By - Mary Flores (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.