Skip to main content
WolfShade
Legend
March 14, 2014
Answered

CF9 & built-in web server: Change default documents?

  • March 14, 2014
  • 1 reply
  • 653 views

Hello, everyone.

I'm just curious if there is a way to change the default documents in CF9 built-in web server?

I know that in IIS the default documents are default.htm, default.html, index.htm, index.html, home.htm, etc.  You can change their priority, remove them, add to them.

Can the same be done in CF9 built-in web server?  I've tried Google-ing for it, but I'm not finding anything on the subject.

UPDATE:  Op!  I may have stumbled across the answer.  I'll let you know if it works.

Thank you,

This topic has been closed for replies.
Correct answer WolfShade

I edited two .xml files, and it works.

I wanted to add "frameset.cfm" and push it to the top.

[drv]\ColdFusion10\cfusion\runtime\conf\web.xml

[drv]\ColdFusion10\cfusion\wwwroot\WEB-INF\web.xml

MAKE A BACKUP OF ANY FILE(S) YOU EDIT, FIRST! 

Locate (at/near the bottom of each file) the section that looks like:

<welcome-file-list>

   <welcome-file>index.html</welcome-file>

   ...

</welcome-file-list>

Add "<welcome-file>YourFilenameHere.ext</welcome-file>" for each that you want to add.  Put the first one you want chosen at the top of the list, etc.

Restart CF Server. Voila.

1 reply

WolfShade
WolfShadeAuthorCorrect answer
Legend
March 14, 2014

I edited two .xml files, and it works.

I wanted to add "frameset.cfm" and push it to the top.

[drv]\ColdFusion10\cfusion\runtime\conf\web.xml

[drv]\ColdFusion10\cfusion\wwwroot\WEB-INF\web.xml

MAKE A BACKUP OF ANY FILE(S) YOU EDIT, FIRST! 

Locate (at/near the bottom of each file) the section that looks like:

<welcome-file-list>

   <welcome-file>index.html</welcome-file>

   ...

</welcome-file-list>

Add "<welcome-file>YourFilenameHere.ext</welcome-file>" for each that you want to add.  Put the first one you want chosen at the top of the list, etc.

Restart CF Server. Voila.

BKBK
Community Expert
Community Expert
March 16, 2014

Nice one! Please mark your answer as 'correct'.

WolfShade
WolfShadeAuthor
Legend
March 17, 2014

Ya'know.. I _was_ going to do that.. but then felt kind of sheepish marking my answer to my own question as "correct". 

AAAAAAAAAAAAAND.. I just noticed that I (by habit) typed "CF9" as part of the title, when I'm actually running CF10.  SORRY!