LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Configure coldfusion to litespeed

Reply
 
Thread Tools Display Modes
  #1  
Old 10-27-2006, 11:37 AM
x3mseth x3mseth is offline
New Member
 
Join Date: Oct 2006
Posts: 4
Default Configure coldfusion to litespeed

Hi, I'm quite new using LiteSpeed, but i find it really interesting project. I would like to connect it to ColdFusion web server to pass dynamic content to the ColdFusion Web server. My ColdFusion application lives in the same machine at (http://localhost:8300/cfmx)
Here's what i have done so far
1. Define an external app to localhost:8300 at VirtualHost Level
2. Define an static context /cfmx to the webroot of my ColdFusion Server at VirtualHost Level
3. Add a Script Handler Definition for cfm prefix to by handled by my external app defined earlier.

So, when I request http://localhost/cfmx all i get is blank pages, and seems to me, Dynamic content is not being passed to the external app.

Thanks in advance for your help
Reply With Quote
  #2  
Old 10-27-2006, 12:07 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
ColdFusion is just a custom script language on top of a java servlet engine.

Check our online demo's admin page to see how we setup a sample connector to Tomcat/JSP. It will apply to ColdFusion as well.

http://www.litespeedtech.com/products/webserver/demo/
Reply With Quote
  #3  
Old 10-27-2006, 01:10 PM
x3mseth x3mseth is offline
New Member
 
Join Date: Oct 2006
Posts: 4
Hum.. well, yes, if I where running ColdFusion on some J2EE Server that supports AJP, but, I guess JRUN (The J2EE Server I'm using) doesn't support AJP. Am I wrong?
Reply With Quote
  #4  
Old 10-27-2006, 01:16 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Method 1:

1) ColdFusioin -> TomCat/Etc -> AJP -> LiteSpeed

Method 2: I think are you trying to do this:

2) ColdFusion -> HTTP PROXY -> LiteSpeed


You don't need a script definition within litespeed for a http proxy and you should not use "static" type context to bind coldfusion to litespeed. Instead create a "external application" of type "web server' and enter the IPort.

And then create a "proxy" context passing all matching web requests to that IPort.
Reply With Quote
  #5  
Old 10-27-2006, 01:19 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
The forum parser doesn't like IP : PORT string. =)

In any case, if JRUN is a fully capable web server, then the "proxy" context/external app method will work.

Forgot to mention that when you create the "proxy" context, you need to select the "external app" you just created.
Reply With Quote
  #6  
Old 10-27-2006, 01:42 PM
x3mseth x3mseth is offline
New Member
 
Join Date: Oct 2006
Posts: 4
Ok, here's what I'm doing

1. Create a WebServer External App pointing to localhost:8300
2. Create a Proxy Context on /cfmx/ to the External App just created
3. Restart :P


Now, when i go http://localhost/cfmx/ the request passes a file to download (the index.html file in the webroot of my localhost:8300). Any file I try to request from litespeed it returns the flat file, and it's not been parsed by ColdFusion.

BTW, Thanks in advance, greate support here!
Reply With Quote
  #7  
Old 10-27-2006, 01:55 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
The proxy context just turns LiteSpeed into a http proxy when the context match so litespeed would just return whatever data it was returned to it by the backend server unmodified. Sounds like a JRUN problem.

Make sure the virtual host is correctly configured and that the requests are proxies to the backend.
Reply With Quote
  #8  
Old 10-27-2006, 02:10 PM
x3mseth x3mseth is offline
New Member
 
Join Date: Oct 2006
Posts: 4
humm, I'm using the "Example" Virtual Host, and If i point my browser to http://localhost:8300/cfmx I can see my application working fine.
Reply With Quote
  #9  
Old 10-31-2006, 09:59 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You JRUN server need to be configured to handle request to http://localhost/cfmx exactly the same way as request to http://localhost:8300/cfmx, LSWS just forward the original request without changing the "Host" header from "localhost" to "localhost:8300". Maybe your JRUN server require it to be "localhost:8300", otherwise, just return the index page.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:28 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.