Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 393
  • Last Modified:

create virtual directory?

how do i create a virtual directory in cf mx? i have IIS but just want to use cf mx
0
finnstone
Asked:
finnstone
1 Solution
 
anandkpCommented:
there are 2 different things

1. virtual directory for ur web server [IIS / Apache / CF built in web server]
2. virtual mappings in CF

what do u wish to do ???
0
 
PluckaCommented:
In IIS right click on the web site entry and cilck all tasks, create virtual directory.

In CF use Administrator.
0
 
proceptCommented:
Hi again,

same answer as in http://www.experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_20788004.html:

You can create a folder "alias" by editing the file [CF_DIR]\wwwroot\WEB-INF\jrun-web.xml:
Add this between the <jrun-web-app> tags:

<virtual-mapping>
    <resource-path>/mymarket</resource-path>
    <system-path>[CF_DIR]/wwwroot/artstore</system-path>
</virtual-mapping>

[CF_DIR] is the directory where CF MX is located. ON Windows, be sure to include drive letter and to use forward slashes!

HTH,

Chris

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
finnstoneAuthor Commented:
my version of cfmx is developer and i think this is the reason other people cannot see it. IS THERE ANYWAY AROUND THIS?
0
 
proceptCommented:
Hi,

are the ppl. getting an error msg? What does it say?

With developer version you can only request pages from the machine where CF is installed. The only legal way around it is to buy a license, because then you get a valid serial number and your server will be "Pro" or "Enterprise"... whatever you buy.

HTH,

Chris



0
 
finnstoneAuthor Commented:
i had pro but forgot to put in the version number after reinstalling cf..people can see it now!
0
 
proceptCommented:
good. :-))
0
 
finnstoneAuthor Commented:
prcept this is not working anymore, here is my example

    <virtual-mapping>
    <resource-path>/FRs</resource-path>
    <system-path>C:/CFusionMX/wwwroot/IERROR</system-path>
  </virtual-mapping>

it does not work when i go to

http://localhost:8500/FRs/home.html 

it works when i go to

http://localhost:8500/IERRORs/home.html 
0
 
proceptCommented:
Hi,

in your mapping you forgot the last letter in the system path... IERROR instead of IERRORs. ;-)

HTH,

Chris
0
 
finnstoneAuthor Commented:
no i mistyped , it works when i go to

http://localhost:8500/IERROR/home.html 
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now