Cartpauj & iComNow

Wednesday, February 13, 2013

Wildcard DNS and Sub Domains — Matt Mullenweg

Wildcard DNS and Sub Domains — Matt Mullenweg: "DocumentRoot /home/photomat/public_html
BytesLog domlogs/photomatt.net-bytes_log
ServerAlias *.photomatt.net
ServerName www.photomatt.net
CustomLog domlogs/photomatt.net combined
RedirectMatch 301 (.*) http://photomatt.net$1


The two magic lines are the ServerAlias directive which is self explanitory and the RedirectMatch line which redirects all requests to photomatt.net in a permanent manner.

"

'via Blog this'

No comments:

Post a Comment