.conffiles, the most important being
http.conf. In Leopard this is at
etc/apache2/. Editing this file is pretty straight forward, it's very templatey - find out where it's done once, then copy, paste and edit.
Virtual hosts are a good thing to set up if you're working with a lot of websites. People talking about enabling the following line beginning with
# Virtual hosts
This is fine, but it doesn't really do anything, it just gets Apache to pull in that extra configuration file when starting up. In fact, you can keep that file commented out (not used) and put virtual directory right there, in the
http.conffile. Here's the basic code for setting up a virtual host
#ZDS Name: redmonkey
Options Indexes MultiViews Includes
I'm sure loads can be changed, and I'm not sure what all of it does yet, but get this in and edit the rest.
Once this is done, you need to setup your hosts file. This can be found in
/etc/and it's simply called
hosts(note: no file extension). Here add the following:
The IP address is equivalent to "
localhost" and then a name of your new hosts. From then on you should be good to go with your new hosting directory in Apache on Leopard.