summaryrefslogtreecommitdiffstats
path: root/htaccess
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-11 10:17:53 +0200
committerDanilo M. <danix@danix.xyz>2026-05-11 10:17:53 +0200
commit884df671a1bd744d3bc004cd8a6f2b5838d24b7b (patch)
tree729a073e24f69e234aa514927c8a76d3af2c8df5 /htaccess
downloadpkgs-html-structure-884df671a1bd744d3bc004cd8a6f2b5838d24b7b.tar.gz
pkgs-html-structure-884df671a1bd744d3bc004cd8a6f2b5838d24b7b.zip
feat: initial commit — Apache autoindex theme with matrix rain
- gen_web_hook.sh: generates _header.html/_footer.html per repo/category/package dir - .assets/matrix-rain.js: danix2-engine matrix rain, header-scoped (65% width, right-aligned) - Category headers include gradient accent pill with category name - htaccess: autoindex config, MIME types, cache headers, IndexIgnore .assets - vhost.conf: Apache VirtualHost template (values masked for public repo) - CLAUDE.md: repo architecture docs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'htaccess')
-rw-r--r--htaccess43
1 files changed, 43 insertions, 0 deletions
diff --git a/htaccess b/htaccess
new file mode 100644
index 0000000..bb92f15
--- /dev/null
+++ b/htaccess
@@ -0,0 +1,43 @@
+# danix Slackware package repository
+
+Options +Indexes
+
+# ── Autoindex options ─────────────────────────────────────────────────────────
+IndexOptions FancyIndexing HTMLTable IgnoreCase SuppressDescription SuppressHTMLPreamble NameWidth=* FoldersFirst ScanHTMLTitles
+
+IndexOrderDefault Ascending Name
+
+# ── Header / Footer (static HTML, generated by gen_web_hook) ─────────────────
+HeaderName _header.html
+ReadmeName _footer.html
+
+# ── Hide internal files from the listing ─────────────────────────────────────
+IndexIgnore _header.html _footer.html .htaccess .htpasswd \
+ CHECKSUMS.md5 CHECKSUMS.md5.asc CHECKSUMS.md5.gz CHECKSUMS.md5.gz.asc \
+ FILELIST.TXT MANIFEST.bz2 \
+ PACKAGES.TXT PACKAGES.TXT.gz \
+ ChangeLog.txt.gz GPG-KEY \
+ .assets
+
+# ── Icons ─────────────────────────────────────────────────────────────────────
+AddIconByType (DIR,/icons-pkg/dir.svg) httpd/unix-directory
+AddIcon /icons-pkg/dir.svg ^^DIRECTORY^^
+AddIcon /icons-pkg/package.svg .txz
+AddIcon /icons-pkg/signature.svg .asc
+AddIcon /icons-pkg/checksum.svg .md5 .sha256
+AddIcon /icons-pkg/compressed.svg .gz .bz2
+AddIcon /icons-pkg/rss.svg .rss
+AddIcon /icons-pkg/file.svg .txt .lst .meta .dep
+DefaultIcon /icons-pkg/file.svg
+
+# ── MIME types for Slackware-specific extensions ─────────────────────────────
+AddType application/octet-stream .txz .dep
+AddType text/plain .txt .asc .lst .meta .md5 .sha256
+
+# ── Cache control ─────────────────────────────────────────────────────────────
+<FilesMatch "\.(txz|dep)$">
+ Header set Cache-Control "public, max-age=86400"
+</FilesMatch>
+<FilesMatch "\.(txt|asc|lst|meta|md5|sha256)$">
+ Header set Cache-Control "public, max-age=3600"
+</FilesMatch>