How To Fix Apache VirtualHost Overlap on Port 443 on AWS Linux

Author: , July 4th, 2016

If you get this error when starting Apache or via apachectl configtest: [warn] _default_ VirtualHost overlap on port 443, the first has precedence then you must add: NameVirtualHost *:443 to /etc/httpd/conf/httpd.conf, then restart Apache

How To Enable Compression On Apache Webservers

Author: , April 26th, 2016

Add the following to either .htaccess or httpd.conf:

How To Force SVG To Use the Correct Content-Type

Author: , April 22nd, 2016

If when trying to use SVG as an image <img src=”image.svg”> or as a CSS background-image, the browser doesn’t display it, your web host is probably serving the SVG with the wrong content-type. Add this to your web server config or .htaccess file: AddType image/svg+xml .svg .svgz

How to Install Apache mod_evasive on AWS Linux/CentOS

Author: , July 26th, 2014

I was getting tired of using iptables to block the various hackers and bots constantly slamming my servers (the Chinese are the worst offenders by far – curse them!). I found the Apache module mod_evasive and installed it. Here are links to various articles about mod_evasive: Add the Module to Apache I […]

How To Embed A Media File Into A Web Page

Author: , September 16th, 2010

[code] <object width="18" height="22"> <param name="src" value="/music/my_song.mp3"> <param name="bgcolor" value="#abcdef"> <param name="autoplay" value="true"> <param name="loop" value="true"> <param name="controller" value="true"> <embed src="/music/my_song.mp3" autostart="true" loop="true" width="18" height="22" controller="true" bgcolor="#abcdef"></embed> </object> [/code]