apache2 Invalid directory indexing option

Posted on 2009-02-19
Medium Priority
Last Modified: 2013-12-14
recently, i reinstalled apache and used the old config files. However when i restart apache, it gives the error

Syntax error on line 11 of /etc/apache2/mods-enabled/autoindex.conf:
Invalid directory indexing option

this is line 11
IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=* Charset=UTF-8

any ideas how to fix this?
Question by:krisdigitx
  • 2

Author Comment

ID: 23681212
the problem is with Charset=UTF-8, if i remove it works,
LVL 27

Expert Comment

ID: 23690521
The logic in the code is

        else if (!strncasecmp(w, "Charset=", 8)) {
            d_cfg->charset = apr_pstrdup(cmd->pool, &w[8]);
        else {
            return "Invalid directory indexing option";

don't know, why the comparison doesn't work (since it works for me on apache 2.2.11) and you got the "else"

Accepted Solution

krisdigitx earned 0 total points
ID: 24383210
i fixed this temporarily by using .htaccess on the documentroot

AddCharset UTF-8 .htm
<Files "file1.htm">
AddCharset gb2312 .htm
<Files "file2.htm">
AddCharset Shift_JIS .htm
<Files "file3.htm">
AddCharset windows-1251 .htm

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this article, the configuration steps in Zabbix to monitor devices via SNMP will be discussed with some real examples on Cisco Router/Switch, Catalyst Switch, NAS Synology device.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question