Can you confirm what you've written in your hosts file?

On Thu, Aug 14, 2008 at 11:02 PM, Stephen Adams <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to set up VirtualHosts in apache for the cf sites I'm working on. 
> My setup so far is I have apache2.2.9 installed, with cf8 running on Vista 
> Home Premium. Both are working fine, the CF administrator runs fine 
> everything is ok. When I installed CF I did not use the JRun setting instead 
> I selected the multi-server config and selected the Apache directory and bin 
> file.
>
> But what I want to do is create Virtual Hosts for each site I work on, for 
> example site1.local or site2.local
>
> I have edited my httpd.conf file and added these line at the bottom of the 
> file:
>
> NameVirtualHost 127.0.0.1
>
> <VirtualHost 127.0.0.1>
>   DocumentRoot "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"
>   ServerName localhost
> </VirtualHost>
>
> <VirtualHost 127.0.0.1>
>        ServerAdmin [EMAIL PROTECTED]
>        DocumentRoot "C:\Program Files\Apache Software 
> Foundation\Apache2.2\htdocs\site1\htdocs"
>        ServerName site1.local
>        ErrorLog logs/site1-error_log
> </VirtualHost>
>
>
> <VirtualHost 127.0.0.1>
>        ServerAdmin [EMAIL PROTECTED]
>        DocumentRoot "C:\Program Files\Apache Software 
> Foundation\Apache2.2\htdocs\site2\htdocs"
>        ServerName site2.local
>        ErrorLog logs/site2-error_log
> </VirtualHost>
>
> I then edited the hosts file under C:\Windows\System32\drivers\etc
>
> And restarted Apache, but now when I go to http://site1.local or 
> http://site2.local I keep getting the default "It Works" page of Apache.
>
> To navigate to the site I then have to put 
> http://site1.local/site1/htdocs/index.cfm now I've been looking on the web 
> for answers but I cannot find a clear answer, so if anyone can help that'll 
> be great.
>
> Thanks
>
> Stephen
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:310969
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to