Here's how I set it up:
I create a conf file, called: some.host.name.conf
Filled with:
<VirtualHost *:80>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /srv/www/somehost
ServerName somehost.local
ErrorLog /path/to/logdir/somehost-error.log
CustomLog /path/to/logdir/somehost.log common
ErrorDocument 500 /appserverbooboo.html
ErrorDocument 403 /forbidden.html
ErrorDocument 404 /missing.cfm
# Include /path/to/confdir/jrun_cfusion_instance1.conf
</VirtualHost>
And some <Directory> stuff or whatever... the point is that each host
is in it's own config file (which ROCKS for organization as things get
more complex), and the bonus is that you can keep them in SVN, and
have a pretty uniform (and fast to set up) environment...
I use includes, so httpd.conf has an Include to httpd-vhosts.conf (you
have to uncomment it), which I keep pretty empty except for
server-wide aliases or whatnot, and Includes to each host .conf file
(which I keep all in one directory).
There is a difference between binding to IP or not (127.0.0.1 vs. *),
so you might want to look into that stuff, but anyways, hope it helps!
--
The greatest way to live with honor in this world is to be what we
pretend to be.
Socrates
On Thu, Aug 14, 2008 at 12:42 PM, Graham Pearson wrote:
> In my httpd.conf file I have NameVirtualHost *:80
>
> <VirtualHost *:80>
> ~ the first one is your default website and in my case points to the
> htdocs directory. All Other virtual host entries point to the document
> root of the website.
> </VirtualHost>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311018
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4