Copy link to clipboard
Copied
Hi,
I installed CF Developer version on my desktop (standard install with JRun). The sites I have are currently running from
etc ...
Is there a way to configure CF so that I can call the sites from
etc ...
The reason I want to do this is so that I can access the root directory for each site. Right now, if I use "/" from any site, it goes to "C:\ColdFusion9\wwwroot\". I'd like for the root directory of site 1 to be at "C:\ColdFusion9\wwwroot\site1\".
There is no need to reinstall ColdFusion. Just install Apache and use the wsconfig tool to connect them.
Instructions are near the bottom of the page here: http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=configuring_07.html#1123947
Copy link to clipboard
Copied
Yes, you need to use a web server to make that happen. Either IIS (If you are on Win7) or Apache would be good choices.
Copy link to clipboard
Copied
Thanks for the tip. I will re-install CF on apache and give it a try.
Copy link to clipboard
Copied
There is no need to reinstall ColdFusion. Just install Apache and use the wsconfig tool to connect them.
Instructions are near the bottom of the page here: http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=configuring_07.html#1123947
Copy link to clipboard
Copied
Ok, thanks. Glad you caught me before I uninstall my CF
Copy link to clipboard
Copied
Hi,
I haven't been able to get my apache to work with cf, but I have another question: does this method allow each site to have its own set of admin settings (mappings, dsn, etc.)? For instance, for site1 I can map /component to site1/component folder, and for site2, I can set up /component to map to site2/component. In other words the settings don't have to be global, but can be specific to each site.
Thanks!
Copy link to clipboard
Copied
In your application.cfc you can specify application specific mappings,
datasource, etc.
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-750b.html
Copy link to clipboard
Copied
Thanks Joshua. I forgot about the ability to set it from application.
Can I infer from this that I can't have site-specific admin settings then?
Copy link to clipboard
Copied
For some things you can, for some you cannot.
For example, with a standard CF install, if you set up a DSN it will be accessible to all of the applications running on that server (unless you get into sandbox security).
Some settings can be app-specific (as already discussed). App timeout, Session timeout, Mappings, custom tags, etc.
Some cannot. DSNs, Session token settings, mappings set in the administrator, etc
If you truly need compltely separate CF admin settings for each application/site, then you need to look at running in multi-server mode or deploying each application as a .war file on Tomcat or another JEE server/servlet container. Both of which are considerably more complicated than even what you are trying to do now.
Copy link to clipboard
Copied
Ok, thanks very much!