August 9, 2012

Setting font MIME types in apache

If your website is using custom fonts, you may see this line in your Chrome console: Resource interpreted as Font but transferred with MIME type application/octet-stream This is really kinda annoying, if you want to get rid of that warning then add the following directives to your apache conf/.htaccess: AddType application/ eot AddType font/opentype otf AddType font/truetype ttf AddType application/x-font-woff .woff See here for more information.

June 5, 2012

Apache permission denied on Mac OSX Lion

I’ve just upgraded to OSX Lion and had some trouble getting Apache to load a vhost. I kept getting a 403 permission denied error, but all my vhosts had the correct permission directives set. Now by default your webserver document root is located in /Library/WebServer/Documents. I don’t really like that for my local machine, I’d rather store web files under my user account. Just tends to make things easier. However…if you’re getting a 403 error, and something like this in your apache error log (/var/log/apache2/error_log): ... Read more

December 13, 2008

Development configuration tips for Ubuntu

I just setup my machine at home with Ubuntu 8.10 (desktop) which was so easy think I saved hours off the time it would normally take with Windows. So much is already installed and ready to go and with apt (or the Synaptic package manager) it’s super quick to download and install extra things things like MySQL, PHP, Apache, Java etc Here are some notes which helped me out when configuring some of these development tools. ... Read more

June 20, 2008

Careful when sharing code sent from an IM client

Ok this is a warning to all those who get sent commands to use via IM. Scenario: I was helping someone setup their Apache config today, so I copied part of my VirtualHost block to them in an IM client. Then I went to their machine, grabbed the code and pasted it into their .conf file. Then Apache wouldn’t start/restart. After spending 10 minutes scratching my head and comparing code and files etc…I removed all carriage returns/whitespace from the code and woo hoo! ... Read more

July 16, 2006

Apache, are you secure?

Peter Freitag has a great post on ‘20 ways to secure your Apache Configuration’ Seeing as Apache is a rather popular web server, this is invaluable information for any developer particularly those who are involved with configuring production boxes. Just how popular is Apache? Have a look at Netcrafts Web Server Survey to September 2006.

© Michael Sharman 2017