summaryrefslogtreecommitdiffstats
path: root/vhost.conf
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 /vhost.conf
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 'vhost.conf')
-rw-r--r--vhost.conf33
1 files changed, 33 insertions, 0 deletions
diff --git a/vhost.conf b/vhost.conf
new file mode 100644
index 0000000..03fef31
--- /dev/null
+++ b/vhost.conf
@@ -0,0 +1,33 @@
+<VirtualHost YOUR_SERVER_IP:443>
+ ServerName YOUR_DOMAIN
+ DocumentRoot /path/to/pkgrepo
+
+ SSLEngine On
+
+ ErrorLog "/var/log/apache2/packages_error_log"
+ CustomLog "/var/log/apache2/packages_access_log" common
+
+ <Directory /path/to/pkgrepo>
+ Require all granted
+ Options +Indexes
+ AllowOverride All
+ </Directory>
+
+ # All IndexOptions, HeaderName, ReadmeName are managed in .htaccess
+
+ Include /etc/letsencrypt/options-ssl-apache.conf
+ SSLCertificateFile /etc/letsencrypt/live/YOUR_DOMAIN/fullchain.pem
+ SSLCertificateKeyFile /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem
+</VirtualHost>
+
+# ── Required Apache modules ───────────────────────────────────────────────────
+# Check what's active: apache2ctl -M | grep -E 'autoindex|headers|php|proxy'
+#
+# a2enmod autoindex <- directory listings
+# a2enmod headers <- Cache-Control headers in .htaccess
+#
+# PHP -- pick one:
+# mod_php: a2enmod php8.4
+# php-fpm: a2enmod proxy_fcgi setenvif && a2enconf php8.4-fpm
+#
+# systemctl reload apache2 \ No newline at end of file