Speedup esxi web console
sudo a2enmod proxy
sudo a2enmod ssl
sudo a2enmod proxy
sudo a2enmod proxy_balancer
sudo a2enmod proxy_http
sudo a2enmod headers
sudo a2enmod expires
sudo a2enmod proxy_wstunnel
sudo a2enmod ssl
sudo a2enmod proxy
sudo a2enmod proxy_balancer
sudo a2enmod proxy_http
sudo a2enmod headers
sudo a2enmod expires
sudo a2enmod proxy_wstunnel
sudo vi esx-ssl.conf
<VirtualHost *:443>
ServerName xyz.tses.gr
ServerAdmin webmaster@tses.gr
DocumentRoot /var/www/html
SSLEngine on
SSLProxyEngine on
ProxyPass "/ticket/" "wss://x.x.x.x/ticket/"
ProxyPass "/" "https://x.x.x.x/"
ProxyPassReverse "/" "https://x.x.x.x/"
SSLCertificateFile /etc/ssl/xxxxxxx.crt
SSLCertificateKeyFile /etc/ssl/xxxxx.pem
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=84600, public"
</filesMatch>
<IfModule mod_expires.c>
# Turn on the module.
ExpiresActive on
# Set the default expiry times.
ExpiresDefault "access plus 2 days"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType text/css "now plus 1 month"
ExpiresByType image/ico "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType text/html "access plus 600 seconds"
</IfModule>
</VirtualHost>
ServerName xyz.tses.gr
ServerAdmin webmaster@tses.gr
DocumentRoot /var/www/html
SSLEngine on
SSLProxyEngine on
ProxyPass "/ticket/" "wss://x.x.x.x/ticket/"
ProxyPass "/" "https://x.x.x.x/"
ProxyPassReverse "/" "https://x.x.x.x/"
SSLCertificateFile /etc/ssl/xxxxxxx.crt
SSLCertificateKeyFile /etc/ssl/xxxxx.pem
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=84600, public"
</filesMatch>
<IfModule mod_expires.c>
# Turn on the module.
ExpiresActive on
# Set the default expiry times.
ExpiresDefault "access plus 2 days"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType text/css "now plus 1 month"
ExpiresByType image/ico "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType text/html "access plus 600 seconds"
</IfModule>
</VirtualHost>