# Apache-Vorlage – Alternative zur Caddyfile. # Ablegen als: /etc/apache2/sites-available/sattelfest.conf # Aktivieren: sudo a2ensite sattelfest && sudo systemctl reload apache2 # # HTTPS fügt certbot automatisch hinzu (siehe Anleitung) – hier stehen # zunächst nur die HTTP-(Port-80-)VirtualHosts. # --- Statische Website --------------------------------------------------- ServerName www.sattelfest.org DocumentRoot /srv/sattelfest/dist Require all granted Options -Indexes AllowOverride None # Fotos lange im Browser-Cache halten Header set Cache-Control "public, max-age=2592000" # Komprimierung AddOutputFilterByType DEFLATE text/html text/css application/javascript application/json image/svg+xml # --- Ohne "www" auf "www" weiterleiten ----------------------------------- ServerName sattelfest.org Redirect permanent / https://www.sattelfest.org/ # --- Git-Host (Forgejo) – Reverse Proxy ---------------------------------- ServerName git.sattelfest.org ProxyPreserveHost On ProxyRequests Off ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/