{"id":1699,"date":"2026-10-20T08:34:05","date_gmt":"2026-10-20T06:34:05","guid":{"rendered":"https:\/\/www.shukko.com\/x3\/?p=1699"},"modified":"2026-10-20T08:34:05","modified_gmt":"2026-10-20T06:34:05","slug":"apache-fancy-index","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2026\/10\/20\/apache-fancy-index\/","title":{"rendered":"apache fancy index"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>cd \/var\/www\/html\/blabla-folder\n\ncat > .htaccess &lt;&lt;'EOF'\nOptions +Indexes\nIndexOptions FancyIndexing HTMLTable Charset=UTF-8 NameWidth=* DescriptionWidth=* FoldersFirst VersionSort IgnoreCase SuppressDescription\nIndexOrderDefault Ascending Name\nIndexIgnore .??* *~\nIndexStyleSheet \"\/blabla-folder\/.fancy.css\"\nEOF\n\ncat > .fancy.css &lt;&lt;'EOF'\n@import url('https:\/\/fonts.googleapis.com\/css2?family=Ubuntu:wght@400;500&amp;family=Ubuntu+Mono&amp;display=swap');\n:root{--bg:#0f1115;--card:#171a21;--row:#1c2029;--hover:#252b37;--fg:#e6e6e6;--muted:#8b93a7;--accent:#4fc3f7;--border:#2a2f3a}\n*{box-sizing:border-box}\nhtml,body{background:var(--bg);color:var(--fg);margin:0;font-family:'Ubuntu',system-ui,sans-serif;font-size:15px}\nbody{max-width:1200px;margin:0 auto;padding:24px 16px}\nh1{font-weight:500;font-size:22px;color:var(--accent);margin:0 0 18px;word-break:break-all}\ntable{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--border);border-radius:10px;overflow:hidden}\nth{background:#12151b;text-align:left;padding:12px 14px;font-weight:500;border-bottom:1px solid var(--border)}\nth a{color:var(--muted);text-decoration:none}th a:hover{color:var(--accent)}\ntr.indexbreakrow,hr{display:none}\ntd{padding:9px 14px;border-bottom:1px solid var(--border);vertical-align:middle}\ntr.odd td{background:var(--row)}tr:hover td{background:var(--hover)}\n.indexcolicon{display:none}\ntd.indexcolname{width:100%;word-break:break-all}\ntd.indexcolname a{color:var(--fg);text-decoration:none}td.indexcolname a:hover{color:var(--accent)}\ntd.indexcollastmod,td.indexcolsize{color:var(--muted);white-space:nowrap;font-family:'Ubuntu Mono',monospace;font-size:14px}\ntd.indexcolsize{text-align:right}\ntd.indexcolname a::before{content:'\ud83d\udcc4';display:inline-block;width:1.6em}\ntd.indexcolname a&#91;href$='\/']::before{content:'\ud83d\udcc1'}\ntd.indexcolname a&#91;href^='\/']::before{content:'\u2b06\ufe0f'}\ntd.indexcolname a:is(&#91;href$='.zip' i],&#91;href$='.tar' i],&#91;href$='.gz' i],&#91;href$='.tgz' i],&#91;href$='.bz2' i],&#91;href$='.xz' i],&#91;href$='.7z' i],&#91;href$='.rar' i],&#91;href$='.zst' i])::before{content:'\ud83d\udce6'}\ntd.indexcolname a:is(&#91;href$='.jpg' i],&#91;href$='.jpeg' i],&#91;href$='.png' i],&#91;href$='.gif' i],&#91;href$='.webp' i],&#91;href$='.svg' i])::before{content:'\ud83d\uddbc\ufe0f'}\ntd.indexcolname a:is(&#91;href$='.mp4' i],&#91;href$='.mkv' i],&#91;href$='.avi' i],&#91;href$='.mov' i],&#91;href$='.webm' i])::before{content:'\ud83c\udfac'}\ntd.indexcolname a:is(&#91;href$='.mp3' i],&#91;href$='.flac' i],&#91;href$='.wav' i],&#91;href$='.ogg' i])::before{content:'\ud83c\udfb5'}\ntd.indexcolname a:is(&#91;href$='.pdf' i])::before{content:'\ud83d\udcd5'}\ntd.indexcolname a:is(&#91;href$='.doc' i],&#91;href$='.docx' i],&#91;href$='.txt' i],&#91;href$='.md' i],&#91;href$='.odt' i])::before{content:'\ud83d\udcdd'}\ntd.indexcolname a:is(&#91;href$='.xls' i],&#91;href$='.xlsx' i],&#91;href$='.csv' i])::before{content:'\ud83d\udcca'}\ntd.indexcolname a:is(&#91;href$='.iso' i],&#91;href$='.img' i],&#91;href$='.qcow2' i],&#91;href$='.vmdk' i])::before{content:'\ud83d\udcbf'}\ntd.indexcolname a:is(&#91;href$='.sh' i],&#91;href$='.py' i],&#91;href$='.php' i],&#91;href$='.js' i],&#91;href$='.json' i],&#91;href$='.conf' i],&#91;href$='.yml' i],&#91;href$='.sql' i],&#91;href$='.html' i])::before{content:'\u2699\ufe0f'}\ntd.indexcolname a:is(&#91;href$='.deb' i],&#91;href$='.rpm' i],&#91;href$='.exe' i],&#91;href$='.msi' i],&#91;href$='.apk' i])::before{content:'\ud83e\udde9'}\naddress{color:var(--muted);font-size:12px;margin-top:14px;font-style:normal}\n@media(max-width:640px){.indexcollastmod{display:none}}\nEOF\n\nchmod 644 .htaccess .fancy.css\nchown $(stat -c '%U:%G' .) .htaccess .fancy.css\nhead -3 .htaccess<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1699","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=1699"}],"version-history":[{"count":1,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1699\/revisions"}],"predecessor-version":[{"id":1700,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1699\/revisions\/1700"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=1699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=1699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=1699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}