Content-Type text.html for DirectoryIndex (1.3.x)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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, christos.jonathan.hayward@xxxxxxxxx
→ 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/
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]