Re: Apache + Virtual hosts with CF

2008-08-15 Thread Paul Stewart
i have managed to get apache working with CF8 no problem . Thank you 
Aron West. He wrote a great article on this in the latest Fusion 
Authority Quarterly Update .

However the new cf ajax features don't respond at all on my apache 
sites. I know in IIS, in spite of ruinning the web server configuration 
tool, you sometimes need to manually create a virtual directory that 
points to CF's underlying ajax scripts or else cf8 ajax features don't 
work on IIS sites either.

I think this is what i need to do with apache but i don't have the first 
idea how to do it. Any apache gurus know how to go about this?

Kym Kovan wrote:
 Stephen Adams 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 
 


 How did you edit your http.conf file? As you have installed Apache in 
 C:\Program Files\Apache Group, ie within Vista's protected bit you 
 will possibly find that the edited http.conf is sitting in 
 C:\Users\youraccountname\AppData\Local\VirtualStore\Program Files\Apache 
 Group\Apache2\conf and Apache isn't reading it abd still reading the 
 original file. We found we had to copy the file from there back to 
 Apache's own conf folder to make it read the edited file.


   


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


Re: Apache + Virtual hosts with CF

2008-08-15 Thread Tom Chiverton
On Friday 15 Aug 2008, Paul Stewart wrote:
 I think this is what i need to do with apache but i don't have the first
 idea how to do it. Any apache gurus know how to go about this?

Simplist thing is to copy the CFIDE folder into your web root. 
Make sure to remove the administrator files and keep the others.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

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


Apache + Virtual hosts with CF

2008-08-14 Thread Stephen Adams
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:310966
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Apache + Virtual hosts with CF

2008-08-14 Thread James Holmes
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


Re: Apache + Virtual hosts with CF

2008-08-14 Thread Cutter (CFRelated)
Aren't VirtualHosts in that version of Apache referenced through a 
separate, included .conf file?

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Stephen Adams 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:310970
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Apache + Virtual hosts with CF

2008-08-14 Thread Stephen Adams
Aren't VirtualHosts in that version of Apache referenced through a 
separate, included .conf file?

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Stephen Adams wrote:


So in my hosts file I have:

127.0.0.1   localhost
::1 localhost
127.0.0.1site1.local
127.0.0.1 site2.local

I have found a httpd-vhosts file in the extra folder of apache/conf, has anyone 
used this? How does it work? 

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


Re: Apache + Virtual hosts with CF

2008-08-14 Thread Graham Pearson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
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

Stephen Adams wrote:
| Aren't VirtualHosts in that version of Apache referenced through a
| separate, included .conf file?
|
| Steve Cutter Blades
| Adobe Certified Professional
| Advanced Macromedia ColdFusion MX 7 Developer
| _
| http://blog.cutterscrossing.com
|
| Stephen Adams wrote:
|
| So in my hosts file I have:
|
| 127.0.0.1   localhost
| ::1 localhost
| 127.0.0.1 site1.local
| 127.0.0.1 site2.local
|
| I have found a httpd-vhosts file in the extra folder of apache/conf, 
has anyone used this? How does it work?
|

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFIpHyt3GqPAgBSy90RAvthAJ40snOJWiEoypOrV5tO61yMlNYYlgCeIAPy
aziOTemiePjR1EWJWCyxVbc=
=7wXN
-END PGP SIGNATURE-


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


Re: Apache + Virtual hosts with CF

2008-08-14 Thread denstar
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


Re: Apache + Virtual hosts with CF

2008-08-14 Thread Kym Kovan
Stephen Adams 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 


How did you edit your http.conf file? As you have installed Apache in 
C:\Program Files\Apache Group, ie within Vista's protected bit you 
will possibly find that the edited http.conf is sitting in 
C:\Users\youraccountname\AppData\Local\VirtualStore\Program Files\Apache 
Group\Apache2\conf and Apache isn't reading it abd still reading the 
original file. We found we had to copy the file from there back to 
Apache's own conf folder to make it read the edited file.


-- 

Yours,

Kym Kovan
mbcomms.net.au


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