Skip to main content
Mihai Baboi
Known Participant
October 5, 2008
Answered

Root folder in CF8

  • October 5, 2008
  • 4 replies
  • 631 views
Hello. I have a question on how to configure Cold Fusion 8. I wand to install it as a self contained server, but I don't want the root folder to be in the same place where it was installed. For example my installation directory to be C:\usr\coldfusion and I want my root folder to be D:\work\cfm\www. I could use Apache as my web server but that would mean having the same directory for my CF and PHP projects. I don't know if there is a solution to my problem, and I hope I have been clear in what I am trying to accomplish. Any suggestion is welcome. Thanks.
This topic has been closed for replies.
Correct answer Newsgroup_User
> Sorry, I meant to specify all these thing but I got carried away. So, here's
> what I'm trying to do: I want to install CF in C:\usr\coldfusion as a self
> contained server. Then I wand my root folder for my applications to be
> D:\work\cfm\www. I found the place where I need to edit in jrun-web.xml but I
> can't get the syntax right. Please specify what how my tag should look like so
> I can set up my root folder.

There's example syntax *in the file*.

It might help if you show us what you've got, and what errors ensue.

I'm not just going to give you the answer, sorry. I'm happy to help you
work it out for yourself, though.

--
Adam

4 replies

Mihai Baboi
Known Participant
October 6, 2008
I experimented with a few options and I got it to work. Thanks a lot for your time. You've been very helpful. One more thing, after trying out a few things a came to a conclusion, and I would like you to tell me if it's correct: for every site I want to map in my root folder outside of the default wwwroot folder I have to create a virtual mapping. Right? Thanks again for all your help.
Inspiring
October 6, 2008
It's difficult to help you if you don't tell us what you tried, and in what
way it didn't work. You didn't even tell us if you were trying the
internal web server or Apache route. Throw us a bone here!

--
Adam
Mihai Baboi
Known Participant
October 6, 2008
Sorry, I meant to specify all these thing but I got carried away. So, here's what I'm trying to do: I want to install CF in C:\usr\coldfusion as a self contained server. Then I wand my root folder for my applications to be D:\work\cfm\www. I found the place where I need to edit in jrun-web.xml but I can't get the syntax right. Please specify what how my tag should look like so I can set up my root folder.
Mihai Baboi
Known Participant
October 6, 2008
I found something on Google about virtual directories but I couldn't figure out how to use them. I tried it and it didn't work, I'm sure I've done something wrong. I'm new to CF and I'm still trying to work out the simple things. Thank you.
Inspiring
October 5, 2008
On Sun, 5 Oct 2008 18:54:23 +0000 (UTC), adobe_fan wrote:

> Hello. I have a question on how to configure Cold Fusion 8. I wand to install
> it as a self contained server, but I don't want the root folder to be in the
> same place where it was installed. For example my installation directory to be
> C:\usr\coldfusion and I want my root folder to be D:\work\cfm\www. I could use
> Apache as my web server but that would mean having the same directory for my CF
> and PHP projects. I don't know if there is a solution to my problem, and I hope
> I have been clear in what I am trying to accomplish. Any suggestion is welcome.
> Thanks.

There is no relation between where the CF application server is installed,
and where the web server serves the website from. There's also no relation
between where a web server will serve files processed by one application
server (PHP) and another one (CF).

If you're using the inbuilt web server that comes with CF, just edit the
jrun-web.xml to set up virtual directories to wherever you want you web
site to live. You will also need to set up virtual directories for CFIDE
and WEB-INF, so CF still knows how to find them.

If you're using Apache, set up a virtual host as per usual, and use the web
service connector (wsconfig) to tell Apache how to talk to CF.

All of this is documented on the Adobe web site. I usually just use Google
to track the docs down.

--
Adam