Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using ColdFusion 8, and the built-in webserver as a development environment.

In order to access sites hosted by the CF built-in webserver you put site directories in cf_root/wwwroot/ and can find them at localhost:8500/, and by default the contents of the directory cf_root/wwwroot are listed at localhost:8500 and any directory that does not have an index file will have it's contents listed by default.

I would like to change this.

I do not want directory contents to be displayed to the user because I want to be able to use localtunnel.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

I would just put an index.cfm file in the wwwroot folder, with nothing in it. That will prevent the directory listing from displaying. So long as their is an index.cfm file, it will be rendered by default.

To disable file browsing completely on the built-in CF server, follow these instructions.

share|improve this answer
1  
that works for the root, but not for subdirectories, I'd like to do something that works for subdirectories too if possible. –  ztatic Oct 12 '11 at 16:44
2  
In that case, give this a try: adobe.com/support/coldfusion/adv_development/… –  Dan Short Oct 12 '11 at 16:59
1  
thanks Dan! you rock! –  ztatic Oct 13 '11 at 21:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.