On Wed, Jan 13, 2021 at 8:03 PM Heather Lotz <kno...@hotmail.com> wrote:
>
> Thanks for pointing that out.
>
> <IfFile "Z:/files/development/ApacheSmokeSignal.txt">
> works correctly.  "Correctly" meaning that Apache starts whether or not the 
> external drive that's mapped to Z: is attached to the PC, 
> localhost:8080/miscellaneous/ resolves when Z: is attached, 
> localhost:8080/miscellaneous/ gives a 404 Not Found response when Z: is not 
> attached.
>
> I also tried
> <IfFile "Z:/">
> and that works correctly as well.
>
> The tag name "IfFile" implies that the condition given within the tag must be 
> for a specific file but it seems that supplying only the drive letter is 
> sufficient.  Will <IfFile> tags work reliably with only the drive letter as 
> the condition as opposed to a specific file?
>

I am not completely sure, but it seems the code evaluates to true when
the parameter is a directory, and c:/ is a directory.  While it's not
documented it seems pretty unlikely to be changed.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to