my OS X web development setup.

Posted by: Jennifer Zelazny | 1 Comment

If you find yourself developing more than one web site at home, or anywhere with a *NIX machine with Apache, and want to be able to access all the sites for testing, it is time to set up Virtual Hosts. By using Virtual Hosts, you can access all your web sites easily (especially if you use absolute links) and separately by typing in: http://jappler/ and http://bareminimum/ and http://other. How does this work? Like I mentioned before, the first step is to set up Virtual Hosts. The second step is to edit your /etc/hosts file so you can assign names to… Read More »

Read More

redirecting domain.com to www.domain.com.

Posted by: Jennifer Zelazny | 0 Comments

So you have a web server and one/some domain names. You want to have all requests to domain.com to go to www.domain.com. most companies have this redirect in place (Apple is an example). I was stumped when I first set out to do this…so here is what I learned from our friends on the Apache mailing list. ServerName www.domain.com ServerAlias domain.com Redirect permanent / http://www.domain.com/ ServerName www.domain.com ServerAdmin [email protected] DocumentRoot /Volumes/www/domain.com/documents This set up in Apache will then redirect all domain.com requests to www.domain.com. You cannot beat mailing lists’ support! [tags]apache, vhosts, redirect[/tags]

Read More