Skip to main content
WolfShade
Legend
Mar 14, 2014 7:05 PM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
WolfShade
WolfShadeCorrect answer
Legend
Mar 14, 2014 7:43 PM UTC

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.

3 replies

WolfShade
WolfShadeAuthorCorrect answer
Legend
Mar 14, 2014 7:43 PM UTC

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.

Translate
BKBK
Community Expert
Community Expert
Mar 16, 2014 11:05 AM UTC

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

Translate
WolfShade
WolfShadeAuthor
Legend
Mar 17, 2014 1:52 PM UTC

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! 

Translate