Apache 2.x Notes

URL Redirection

# Redirecting all requests for http://spidermanedgeoftime.com/ to http://herohq.com/spidermanedgeoftime/
<VirtualHost *:80>
	ServerAdmin admin@spidermanedgeoftime.com
	DocumentRoot /var/tmp
	ServerName spidermanedgeoftime.com
	ServerAlias *.spidermanedgeoftime.com
	ErrorLog /var/logs/spidermanedgeoftime.com-error_log # Can be commented out but the rare errors should be logged.
#	TransferLog /var/logs/spidermanedgeoftime.com-access_log # Commented out unless we want to track hits to the domain
</VirtualHost>
<Directory /var/tmp>
	RewriteEngine on
	RewriteCond %{HTTP_HOST} ^([^.:]+\.)*spidermanedgeoftime\.com\.?(:[0-9]*)?$ [NC]
	RewriteRule ^(.*)$ http://herohq.com/spidermanedgeoftime/$1 [R=301,L,QSA]
</Directory>

WebFont MIME-Type

AddType application/vnd.ms-fontobject .eot
AddType application/octet-stream .otf .ttf
AddType image/svg+xml .svg
AddType application/x-font-woff .woff

IE .htc Files

To make .htc files work for IE 6 you may need to update your server with the correct MIME-Type

AddType text/x-component .html (???)
AddType text/x-component .htc (no?)

OS X Setup

Always try sudo apachectl -k start first.

10.6.x Snow Leopard

Add the following to /private/etc/hosts

127.0.0.1	LAX0MGardnerMBP.local

Add Apache Log Directory

sudo mkdir /private/var/log/apache2