apache2 Invalid directory indexing option

Posted on 2009-02-19
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

    Author Comment

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

    Expert Comment

    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

    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

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now