Q:

cfimage not displaying captcha image

I am using cfimage to generate captcha in coldfusion9. In my project there are three environments named dev, stage and production. The captcha image is getting displayed both in dev and production but in stage it is not displaying the image. When I am looking through firebug the 'src' attribute of the captcha image tag is having the path as, '/CFFileServlet/_cf_captcha/_captcha_img-156564442913310989.png' but the image is not displaying.
Please suggest me what could be the possible cause of this problem.
Thanks

A:

If your server is under Apache, you can also do the mapping directly in your Apache conf file:
Alias /CFFileServlet /opt/coldfusion9/cfusion/tmpCache/CFFileServlet
<Directory /opt/coldfusion9/cfusion/tmpCache/CFFileServlet>
    Order allow,deny
    Allow from all
</Directory>

