Saturday, December 15, 2007

Switching web server on ColdFusion

In case there is a need to switch from an external web server to the built-in ColdFusion web server, you can acheive this without reinstalling.

Switch from an external web server to the built-in web server

  1. Back up the jrun.xml file.

    This file is in the cf_root\runtime\servers\default\SERVER-INF directory in Windows, and in the cf_root/runtime/servers/default/SERVER-INF directory in UNIX.

  2. Open the original jrun.xml file for editing.
  3. Locate the WebService service and set the deactivated attribute to false:
    <service class="jrun.servlet.http.WebService" name="WebService">     <attribute name="port">8500</attribute>     <attribute name="interface">*</attribute>     <attribute name="deactivated">false</attribute>     ... </service> 

  4. Locate the ProxyService service and set the deactivated attribute to true:
    <service class="jrun.servlet.jrpp.JRunProxyService" name="ProxyService">   <attribute name="activeHandlerThreads">8</attribute>   <attribute name="minHandlerThreads">1</attribute>   <attribute name="maxHandlerThreads">1000</attribute>   <attribute name="mapCheck">0</attribute>   <attribute name="threadWaitTimeout">20</attribute>   <attribute name="backlog">500</attribute>   <attribute name="deactivated">true</attribute> ... 

  5. Save the file.
  6. Copy the CFM pages in your web root directory (including the CFIDE and cfdocs directories) to the ColdFusion cf_root/wwwroot directory, and use appropriate URL references (for example, http://localhost:8500/YourApp1/index.cfm). If you switch from the built-in web server to an external web server, you must copy the contents of the cf_root/wwwroot directory to your web server root. If you are using Adobe Dreamweaver, ensure that you reconfigure any sites that you move from one server to another.
  7. Restart ColdFusion.

 

17 comments:

Anonymous said...

It works! Don't forget the :8500 that must be the port that CF's internal webserver listens on. Also works with 127.0.0.1

Anonymous said...

TEST

Take a look at my web-site: 1 Dollar Hosting

Anonymous said...

It is really a nice and useful piece of info.
I am glad that you simply shared this useful info with us. Please stay us up to
date like this. Thanks for sharing.

my weblog ... humax freesat pvr

Anonymous said...

When someone writes an post he/she keeps the image of a user in
his/her mind that how a user can understand it. Thus that's why this article is great. Thanks!

Also visit my homepage; www.Overthedoortowelrack.org

Anonymous said...

Hi there! Do you know if they make any plugins to protect against hackers?
I'm kinda paranoid about losing everything I've worked
hard on. Any recommendations?

Also visit my webpage ... canoeroutes.org

Anonymous said...

Why users still use to read news papers when in this technological world everything is available on web?


Feel free to surf to my blog post: skalarwelle.com

Anonymous said...

Pretty! This was an incredibly wonderful article.
Thanks for providing these details.

Feel free to visit my web site - gocruiseturkey.com

Anonymous said...

Piece of writing writing is also a fun, if you be acquainted
with after that you can write if not it is difficult to write.



My web site mp3 recorder

Anonymous said...

I really love your blog.. Great colors & theme. Did
you develop this site yourself? Please reply back as I'm trying to create my very own site and want to learn where you got this from or exactly what the theme is called. Kudos!

Here is my homepage - scmothersclub.org

Anonymous said...

Heya! I just wanted to ask if you ever have any problems with
hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no backup.
Do you have any methods to protect against hackers?


my web page :: Http://chinaifp.org

Anonymous said...

Hey there! I know this is kinda off topic but I was wondering if you knew where I could find
a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having difficulty finding one?
Thanks a lot!

My homepage ... megabuildersbd.net

Anonymous said...

I think this is one of the most important information for
me. And i am glad reading your article. But want to remark on few general things, The website style is ideal,
the articles is really nice : D. Good job, cheers

Look into my page; tv dvr recorders

Anonymous said...

excellent issues altogether, you simply gained a new reader.
What would you suggest about your put up that you simply made some days ago?
Any certain?

Feel free to surf to my web site cheap televisions

Anonymous said...

I will right away grasp your rss as I can not find your e-mail subscription link or
e-newsletter service. Do you've any? Kindly permit me recognise so that I may subscribe. Thanks.

My weblog ... televiseur samsung

Anonymous said...

If you wish for to get a good deal from this paragraph then you have to apply such
methods to your won weblog.

Feel free to visit my blog http://wiki.webcomics.es/

Anonymous said...

Keep this going please, great job!

My website :: hd tv recorder

Anonymous said...

Hi, I wish for to subscribe for this weblog to get latest updates, so where can i do it please help.สล็อตออนไลน์