Utilizzo di proxypass con SSL in Apache

From RVM Wiki
Jump to navigation Jump to search
  • Avendo a che fare con server SSL di backend non standard, queste direttive sono utili per configurare correttamente proxypass SSL in caso si ricevando errori:
<VirtualHost *:80>
  ServerName frontend.example.priv
  ServerAlias frontend
  DocumentRoot "/var/www"
  ServerSignature Off
  
  <Directory "/var/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Require all granted
  </Directory>

  ErrorLog "/var/log/apache2/frontend.example.priv_error.log"
  CustomLog "/var/log/apache2/frontend.example.priv_access.log" combined

  SSLPRoxyEngine On
  SSLProxyVerify none
  SSLProxyCheckPeerCN off
  SSLProxyCheckPeerName off
  Timeout 2400
  ProxyTimeout 2400
  ProxyBadHeader Ignore
  ProxyRequests Off
  SetEnv force-proxy-request-1.0 1
  SetEnv proxy-nokeepalive 1
  
  ProxyPass / https://backend.example.priv/ acquire=3000 timeout=600 retry=1 Keepalive=On
  <Location />
    ProxyPassReverse https://backend.example.priv/
  </Location>

</VirtualHost>