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:

  1. apt update -y && apt upgrade -y && reboot
    
  2. dpkg-reconfigure tzdata #(selezionare continente e città)
    
  3. apt install -y apache2
    
  4. a2enmod proxy proxy_http proxy_ajp rewrite deflate headers proxy_balancer proxy_connect proxy_wstunnel remoteip
    
  5. systemctl restart apache2 
    
  6. apt install -y certbot python-certbot-apache
    
  7. certbot certonly --apache #(avrete le vostre chiavi fullchain e privkey per accedere in https)
    
  8. a2dissite 000-default.conf
    
  9. 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)


  1.  apachectl -t
    
  2.  a2ensite proxmox.conf
    
  3.  systemctl reload apache2 
    

Configurazione tipo per Home Assistant:

  • nano /etc/apache2/sites-available/hass.conf
    

esempio con A+ (da testare con SSLLABS)


  1.  apachectl -t
    
  2.  a2ensite hass.conf
    
  3.  systemctl reload apache2