Skip to main content
Participant
December 26, 2013
Question

Changing CF10 default web root to use dropbox

  • December 26, 2013
  • 1 reply
  • 871 views

Hi,

I managed to have this running fine in CF9 for a long time but I have just updated to CF10 dev edition on my local Mac and I can't seem to get it working after much research and various tweaks.

I have changed the server.xml config file to the following (amongst various other variations):


<Context path="/"

                 docBase=“/Users/craig/Dropbox/www”

                 WorkDir="/Applications/ColdFusion10/cfusion/wwwroot”

                 aliases="/CFIDE=/Applications/ColdFusion10/cfusion/wwwroot/CFIDE,/WEB-INF=/Applications/ColdFusion10/cfusion/wwwroot/WEB-INF">

</Context>

I restart CF10 each time but continue to get the following browser error: Safari (any browser) can't connect to the server: 127.0.0.1

Any help very much appareciated as I like to run CF on both my iMac and Air sharing the same DropBox root.

Thanks

This topic has been closed for replies.

1 reply

Anit_Kumar
Inspiring
January 5, 2014

Hi TOLR,

The docBase, WorkDir and aliases should have the absolute path to a directory. for e.g. "docBase=“c:/Users/craig/Dropbox/www”"

TLOR wrote:


<Context path="/"

                 docBase=“/Users/craig/Dropbox/www”

                 WorkDir="/Applications/ColdFusion10/cfusion/wwwroot”

                 aliases="/CFIDE=/Applications/ColdFusion10/cfusion/wwwroot/CFIDE,/WEB -INF=/Applications/ColdFusion10/cfusion/wwwroot/WEB-INF">

</Context>

I restart CF10 each time but continue to get the following browser error: Safari (any browser) can't connect to the server: 127.0.0.1

Any help very much appareciated as I like to run CF on both my iMac and Air sharing the same DropBox root.

Thanks

Also, the list of aliases should be of the form "/aliasPath1=docBase1,/aliasPath2=docBase2" where aliasPathN must include a leading '/' . I see an extra space in WEB-INF under aliases, if not intentional.

Save the server.xml, restart the CF10 Application service and see if it helps.

Regards,

Anit Kumar

TLORAuthor
Participant
January 7, 2014

Hi Anit,

Thanks for taking the time to reply.

I checked the file and ensured any spaces were removed and restarted and I'm afraid it still doesn't work (The paths are Mac paths and are actually absolute).

Has anyone else got this to work, it really is very frustrating and is obviously related to the new CF inbuilt server as was never an issure before

Cheers