User Tools

Site Tools


apache2_ssl_php5_mysql5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
apache2_ssl_php5_mysql5 [2022/07/20 23:00] – Updated formatting adminapache2_ssl_php5_mysql5 [2022/07/24 16:41] (current) admin
Line 129: Line 129:
  
 You will have to accept the SSL cert warning, however all vhosts should show up correct. You will have to accept the SSL cert warning, however all vhosts should show up correct.
 +
 +
 +===== Sample vhost config with Proxy =====
 +<code>
 +<VirtualHost *:80>
 +        ProxyRequests Off
 +        ProxyPreserveHost On
 +        ProxyPass / http://192.168.1.3:80/
 +        ProxyPassReverse / http://192.168.1.3:80/
 +        ServerName www.tom.me
 +        ServerAlias *tom.me
 +        CustomLog /var/log/apache2/access_tom.log combined
 +        ErrorLog /var/log/apache2/error_tom.log
 +</VirtualHost>
 +<VirtualHost *:443>
 +        ProxyRequests Off
 +        ProxyPreserveHost On
 +        ProxyPass / https://192.168.1.3:443/
 +        ProxyPassReverse / https://192.168.1.3:443/
 +        ServerName www.tom.me
 +        ServerAlias *tom.me
 +        CustomLog /var/log/apache2/access_tom.log combined
 +        ErrorLog /var/log/apache2/error_tom.log
 +
 +        SSLProxyEngine On
 +        SSLEngine on
 +        SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
 +        SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
 +        BrowserMatch "MSIE [2-6]" \
 +                nokeepalive ssl-unclean-shutdown \
 +                downgrade-1.0 force-response-1.0
 +        # MSIE 7 and newer should be able to use keepalive
 +        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
 +</VirtualHost>
 +
 +
 +</code>
apache2_ssl_php5_mysql5.txt · Last modified: 2022/07/24 16:41 by admin