Dev Dev
Dev Dev

Reputation: 387

ColdFusion 2016 change location of served files to /var/www/html

I have ColdFusion 2016 installed in CentOS 7 and I have Apache (httpd) installed and ColdFusion configured to use it. The installation path and the location of the wwwroot folder is standard: /opt/coldfusion2016/cfusion/wwwroot/ When I put a file inside this folder wwwroot /opt/coldfusion2016/cfusion/wwwroot/index.cfm httpd reads it and I can see that any ColdFusion code in the file is interpreted well by apache.

index.cfm
<cfset name="John">
<cfoutput> Hello #name# ! </cfoutput>

http://192.168.X.X/index.cfm shows Hello John!

I did not create any special virtualhost yet so my question is: How do I make ColdFusion reads files from /var/www/html instead of /opt/coldfusion2016/cfusion/wwwroot
Is this done via ColdFusion administration or via apache httpd configuration?

Upvotes: 0

Views: 74

Answers (0)

Related Questions