I am getting an error in my log if I visit
http://jonathanscorner.com/admin/but not
http://jonathanscorner.com/admin/index.html under Apache 1.3.x. The two
URL's serve up the same file; on a visit to
http://jonathanscorner.com/admin/ , DirectoryIndex pulls up the same
index.html (that directory has no index.cgi/index.php/etc.). The message
logged is:

[warn] Cannot get media type from 'text.html'

Is there any way in httpd.conf or .htaccess that I can get
DirectoryIndex-served files to be assigned Content-Type "text/html" and not
"text.html"? I haven't had success with variants on

<FilesMatch "^.*/$">
AddType text/html
</FilesMatch>

because AddType requires a second argument, an extension, and neither "" nor
* nor an omitted extension will match a directory with a trailing slash and
no extension.

Is there any way that DirectoryIndex-served files can be specified to be
text/html?

-- 
→ Jonathan Hayward, [email protected]
→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection is available for free reading online:
☩ I invite you to visit my main site at http://JonathansCorner.com/

Reply via email to