Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all articles
Browse latest Browse all 5979

Multiple virtual folders in ColdFusion developer edition

$
0
0

Hello,

 

I have several websites that I'm working on, and each one needs it's own development environment located on my own computer. At the moment my web root is located at: http://127.0.0.1:8500/. The problem is now that I have several subfolders underneath this web root, each one of them representing a separate website. I like referencing my images, stylesheets, javascript, and links as links that are relative the root URL, like this "/images/myimage.jpg". The problem is that now with multiple websites stored on my computer, the links don't point to my subfolders /company1, /company2, etc. Instead they point to the root itself, which doesn't work.

 

I was able to fix this by going into the following file and updating some code:

 

C:\ColdFusion11\cfusion\runtime\conf\server.xml

 

I uncommented this line of code and added the web root of my choice;

 

<Context path="/" docBase="<cf_home>\wwwroot" WorkDir="<cf_home>\runtime\conf\Catalina\localhost\tmp" ></Context>

 

This works great for just one of my websites. I can change the root here, and restart the server, and ColdFusion will point to the new root. However, what I really want to do is allow ColdFusion to have not just one virtual directory, but several. This way I won't have to change this code every time and restart the server.

 

Any ideas?

 

Thanks,

 

Pete


Viewing all articles
Browse latest Browse all 5979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>