{"id":10,"date":"2004-07-07T08:28:59","date_gmt":"2004-07-07T08:28:59","guid":{"rendered":"http:\/\/lachy.id.au\/log\/2004\/07\/directory-listings-finally-work"},"modified":"2006-04-30T23:55:25","modified_gmt":"2006-04-30T23:55:25","slug":"directory-listings-finally-work","status":"publish","type":"post","link":"https:\/\/lachy.id.au\/log\/2004\/07\/directory-listings-finally-work","title":{"rendered":"Directory Listings Finally Work!"},"content":{"rendered":"<p>I&#8217;ve been struggling with this for a while now.  I couldn\u2019t figure out how to set up my server with <a href=\"http:\/\/httpd.apache.org\/docs-2.0\/mod\/mod_negotiation.html#multiviews\">multivews<\/a>, yet still allow enable <a href=\"http:\/\/httpd.apache.org\/docs-2.0\/mod\/mod_autoindex.html\">autoindex<\/a> to work, instead of returning an <code>HTTP\/1.1 403 Forbidden<\/code> error.  I ended up finding out that I needed to extend the <code>Options<\/code> directive with the <code>Indexes<\/code> parameter.  <abbr title=\"For Example\">eg.<\/abbr><\/p>\r\n\r\n<pre><code>Options Multiviews Indexes<\/code><\/pre>\r\n\r\n<p>I\u2019m now working on trying to get the directory indexes to be produced as valid XHTML, rather than invalid HTML 4.0 Transitional.  Currently, the server is running <a href=\"http:\/\/httpd.apache.org\/docs\/\">Apache 1.3.26<\/a>, so the <code>IndexOptions XHTML<\/code> directive is not supported, since it is new to <a href=\"http:\/\/httpd.apache.org\/docs-2.0\/\">Apache 2.0.49<\/a>.  So I\u2019ve sent of a request to my <abbr title=\"Internet Service Provider\">ISP<\/abbr> to see if they will upgrade for me, but they may not.<\/p>\r\n\r\n<p>What I would really like is a way to define the template file for the directory index, although I haven\u2019t yet discovered how to do that, or even if it is possible.  That way I could make it <a href=\"http:\/\/www.w3.org\/TR\/xhtml1\/\">XHTML 1.0 Strict<\/a>, and hopefully be able to configure the server to deliver the content as <code>application\/xhtml+xml<\/code>, rather than <code>text\/html<\/code>  So, if anyone reading this (<em><strong>if<\/strong> I ever get any readers<\/em>) knows a way to do this, or to improve any of my server settings, please post a comment or <a href=\"mailto:&#108;&#097;&#099;&#104;&#108;&#097;&#110;&#046;&#104;&#117;&#110;&#116;&#064;&#108;&#097;&#099;&#104;&#121;&#046;&#105;&#100;&#046;&#097;&#117;\">email me<\/a> to let me know.<\/p>","protected":false},"excerpt":{"rendered":"I&#8217;ve been struggling with this for a while now. I couldn\u2019t figure out how to set up my server with multivews, yet still allow enable autoindex to work, instead of returning an HTTP\/1.1 403 Forbidden error. I ended up finding out that I needed to extend the Options directive with the Indexes parameter. eg. Options &hellip; <a href=\"https:\/\/lachy.id.au\/log\/2004\/07\/directory-listings-finally-work\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Directory Listings Finally Work!<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/posts\/10"}],"collection":[{"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":0,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"wp:attachment":[{"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lachy.id.au\/log\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}