I have JRUN set up and working on Windows XP Pro (my development
workstation). I have CFMX6 and CFMX7 both deployed and "seem(ed)" to be
working fine. The specific information for each deployment is as
follows:
 
CFMX6: http://localhost:8101/
context path: /
document root: C:\Inetpub\wwwroot
 
CFMX6: http://localhost:8102/
context path: /
document root: C:\Inetpub\wwwroot
 
I ran the IIS connector on both and all went fine. I could log into the
MX6 admin and MX 7 admin no problems. I configured the servers and off I
went.  I dropped a site into the document root (C:\Inetpub\wwwroot) and
tried to access it via the CFMX 6 URL: http://localhost:8101/site/
<http://localhost:8101/site/> . The site pulls fine except none of the
CSS, JS, and Image paths appear to be working. When viewing the source,
they all "look" correct in that they appear as:
 
http://localhost:8101/site/images/...
http://localhost:8101/site/js/...
http://localhost:8101/site/css/...
 
Ok, here is where it gets interesting. In the application.cfm file I
have this:
 
if(CGI.server_port neq 80){
   application.thisServer = LCase(ListFirst(CGI.server_protocol,"/")) &
"://" & CGI.server_name & ":" & CGI.server_port & "/site/";
}
else{
 application.thisServer = LCase(ListFirst(CGI.server_protocol,"/")) &
"://" & CGI.server_name & "/site/";
}
 
application.thisServer.js = application.thisServer & "js/";
application.thisServer.css = application.thisServer & "css/";
application.thisServer.image = application.thisServer & "Image/";
 
If I leave the above alone, the page does not render with the images,
js, or css working.
 
If I hard code the path in such that it looks like the following, all
works fine... everything renders and works!:
 
application.thisServer.js = http://127.0.0.1:8101/site/js/;
application.thisServer.css = "http://127.0.0.1:8101/site/css/";;
application.thisServer.image = http://127.0.0.1:8101/site/mage/;
 
Any ideas? Is this a JRUN/Site/IIS config issue?
 
TIA,
 
Mike
 
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214558
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to