• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Setting up CF in local computer

Explorer ,
Oct 12, 2011 Oct 12, 2011

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

http://localhost:8500/site1

http://localhost:8500/site2

etc ...

Is there a way to configure CF so that I can call the sites from

http://site1

http://site2

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\".

Views

1.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Oct 12, 2011 Oct 12, 2011

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

Votes

Translate

Translate
Advocate ,
Oct 12, 2011 Oct 12, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 12, 2011 Oct 12, 2011

Copy link to clipboard

Copied

Thanks for the tip.  I will re-install CF on apache and give it a try.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 12, 2011 Oct 12, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 12, 2011 Oct 12, 2011

Copy link to clipboard

Copied

Ok, thanks.  Glad you caught me before I uninstall my CF

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 19, 2011 Oct 19, 2011

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 19, 2011 Oct 19, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 19, 2011 Oct 19, 2011

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 19, 2011 Oct 19, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 19, 2011 Oct 19, 2011

Copy link to clipboard

Copied

LATEST

Ok, thanks very much!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation