Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Coldfusion not working with Apache Virtual Hosts

View parsed - Show only message text

Path: g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!forums.macromedia.com!not-for-mail
From: "bigreddastud" <webforumsu...@macromedia.com>
Newsgroups: macromedia.coldfusion.server_administration
Subject: Re: Coldfusion not working with Apache Virtual Hosts
Date: Tue, 11 Jan 2005 19:55:53 +0000 (UTC)
Lines: 64
Distribution: macromedia
Message-ID: <cs1b09$48g$1@forums.macromedia.com>
References: <cruruo$7qb$1@forums.macromedia.com>
NNTP-Posting-Host: d65app3.macromedia.com
X-Trace: forums.macromedia.com 1105473353 4368 10.172.12.23 (11 Jan 2005 19:55:53 GMT)
X-Complaints-To: support@macromedia.com
NNTP-Posting-Date: Tue, 11 Jan 2005 19:55:53 +0000 (UTC)

OK, I've fixed my problem.

 I needed to have the CF module loading for each virtual host instead of as a 
site wide directive.  In order to fix this I put the <IfModule> code in each 
virtual host definition.  Just copy/paste it from the main server section into 
all virtual hosts.

 This is not really stated anywhere much that I could find.  I saw several 
places (one here at Macromedia too) that showed setting up multiple instances 
of the CF Server, but none that I found really enumerated details on my simple 
situation.  I've documented it here as an FYI to others:




 # www.domain1.com host
 <VirtualHost *>
     ServerAdmin webmas...@domain1.com
     ServerAlias *.domain1.com
     DocumentRoot D:\inetpub\wwwroot\domain1_com
     ServerName domain1.com
     ErrorLog logs\domain1.com-error_log
     CustomLog logs\domain1.com-access_log common

     #aliases 

     Alias /cfadmin "D:\InetPub\wwwroot\ColdFusionMX\CFIDE\administrator"
     #Alias /mailroot
     #Alias /rome
 	<IfModule mod_jrun20.c>
 	    JRunConfig Verbose false
 	    JRunConfig Apialloc false
 	    JRunConfig Ignoresuffixmap false
 	    JRunConfig Serverstore 
"C:/CFusionMX/runtime/lib/wsconfig/1/jrunserver.store"
 	    JRunConfig Bootstrap 127.0.0.1:51010
 	    #JRunConfig Errorurl <optionally redirect to this URL on errors>
 	    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc
 	</IfModule>
                 
 </VirtualHost>

 # www.domain2.com host
 <VirtualHost *>
     ServerAdmin webmas...@domain2.com
     ServerAlias *.domain2.com 
     DocumentRoot D:\inetpub\wwwroot\domain2_com
     ServerName domain2.com
     ErrorLog logs\domain2.com-error_log
     CustomLog logs\domain2.com-access_log common
     
 	<IfModule mod_jrun20.c>
 	    JRunConfig Verbose false
 	    JRunConfig Apialloc false
 	    JRunConfig Ignoresuffixmap false
 	    JRunConfig Serverstore 
"C:/CFusionMX/runtime/lib/wsconfig/1/jrunserver.store"
 	    JRunConfig Bootstrap 127.0.0.1:51010
 	    #JRunConfig Errorurl <optionally redirect to this URL on errors>
 	    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc
 	</IfModule>

 </VirtualHost>


Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google