PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, September 21, 2022

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

 September 21, 2022     apache2, directoryindex, virtualhost     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing