APACHE - Giancky79/proxmox GitHub Wiki
Info lxc:
-
Debian 10 -
Privilegiato
Porte da aprire sul modem verso apache:
-
80 -
443
Features da attivare:
-
Nesting
Comandi installazione:
-
apt update -y && apt upgrade -y && reboot -
dpkg-reconfigure tzdata #(selezionare continente e città) -
apt install -y apache2 -
a2enmod proxy proxy_http proxy_ajp rewrite deflate headers proxy_balancer proxy_connect proxy_wstunnel remoteip -
systemctl restart apache2 -
apt install -y certbot python-certbot-apache -
certbot certonly --apache #(avrete le vostre chiavi fullchain e privkey per accedere in https) -
a2dissite 000-default.conf -
systemctl reload apache2
Per creare ulteriori certificati:
-
certbot certonly --apache -d #<nome dominio>
Configurazione tipo per Proxmox:
-
nano /etc/apache2/sites-available/proxmox.conf
esempio con A+ (da testare con SSLLABS)
-
apachectl -t -
a2ensite proxmox.conf -
systemctl reload apache2
Configurazione tipo per Home Assistant:
-
nano /etc/apache2/sites-available/hass.conf
esempio con A+ (da testare con SSLLABS)
-
apachectl -t -
a2ensite hass.conf -
systemctl reload apache2