tracker issue : CFB-4198228

select a category, or use search below
(searches all categories and all time range)
Title:

Changing the Document Root still requires project files to be within the bundled server's wwwroot folder

| View in Tracker

Status/Resolution/Reason: Closed/Not a Bug/

Reporter/Name(from Bugbase): Mikael Paul / Mikael Paul ()

Created: 07/17/2017

Components: Bundled Server

Versions: 2016

Failure Type: Others

Found In Build/Fixed In Build: 300344 /

Priority/Frequency: Normal /

Locale/System: English / Windows 7 SP1 64-bit

Vote Count: 0

Description:
When changing the "Document Root" to a folder outside of the "Server Home" field, the built-in server still only executes ColdFusion pages that are contained within the wwwroot folder. From my understanding, the Document Root signifies the location to which the project files are to be executed from.

Steps to reproduce:
1. Right-click the "defaultLocal" server in the server list and select "Edit Server"
2. Select "CF+Tomcat Bundle" for the Application Server, "127.0.0.1" for the Host Name, select "Is Local", and set the port to 8500 (8600 in my case) and click the "Next" button.
3. Set the Server Home to the built-in ColdFusion server "C:\ColdFusionBuilder2016\ColdFusion\cfusion", set the Document Root to the path outside of the Server Home, in my case "C:\Development\Sites", and set the Version to "2016". Click the "Finish" button.
4. Execute a file in the Document Root.

Actual Result:
Error 404, file not found.

Expected Result:
File should have loaded from the Document root.

Any Workarounds:
The only workaround I was able to make was by copying all the project files into the wwwroot directory, which defeats the purpose of defining the document root.

Attachments:

Comments:

Another workaround is by modifying the server.xml file located at [installation root]\ColdFusion\cfusion\runtime\conf\server.xml. This however has caused another issue where the .cfm file isn't processed correctly and is simply outputted as plain text to the browser.
Comment by Mikael P.
26046 | July 18, 2017 01:34:42 PM GMT
The issue where the .cfm file isn't processed correctly and is outputted as plain text is because the cf_scripts, CFIDE, WEB-INF, and crossdomain.xml folders and files needed to be copied over to the new web root as well.
Comment by Mikael P.
26047 | July 18, 2017 02:17:24 PM GMT
Hi Paul, It is not designed that way. 1. You can either configure a web server with CF and place your files in Web server root 2. You can also create Virtual Directory in CF incase you want to change default web root of CF
Comment by Manas M.
27622 | April 25, 2018 07:31:49 AM GMT