blob: 03fef31e512bb47a345860f905aa3033b30fe555 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|