Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
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
In that case, give this a try:… – Dan Short Oct 12 '11 at 16:59
thanks Dan! you rock! – ztatic Oct 13 '11 at 21:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .