Solved

how to have URL diff from file structure on computer??

Posted on 2003-11-04
14
154 Views
Last Modified: 2013-12-24
I want a web site with the URL http://localhost:8500/mymarket/store.html

Howeever my file structure on my computer is cfusionx/wwwroot/artstore/store.html

How can I change the URL without changing the naming of the artstore folder and thus having to do a bunch of recoding for my web app.

Virtual hosting?

Please lay out steps to take
0
Comment
Question by:finnstone
  • 5
  • 4
  • 3
  • +1
14 Comments
 
LVL 25

Expert Comment

by:James Rodgers
Comment Utility
if using ms personal web server

open web server manager by double clicking on icon in lower right corner of screen

click the advanced tab

select add from the options on the  right

follw the steps in the box that opens and rename folder
0
 

Author Comment

by:finnstone
Comment Utility
i am using coldfusion and that is all??!! can i still do it? i do not want to rename folder, just the url path
0
 
LVL 25

Expert Comment

by:James Rodgers
Comment Utility
you need to have some kind of associated server running, at least in 4.5, also, coldfusion server runs in conjunction with PWS, IIS, apache and maybe one or two others

what version of CF are you using?

0
 
LVL 25

Expert Comment

by:James Rodgers
Comment Utility
you dont rename the folder directly, in the open dialog you can give the folder a virtual name and set the permissions

what version of CF are you using? also your operating system and version
0
 

Author Comment

by:finnstone
Comment Utility
cf mx and win xp..i dont need to have a server to publish..i already did and other people could access it..i think i have IIS but i didnt configure it at all and my site worked..now i want to change the url
0
 
LVL 17

Expert Comment

by:anandkp
Comment Utility
hi,

Change the settings for ur web site in ur web server [IIS]

open IIS & click on ur web site .... open the properties dialog & reconfigure teh folderpath to the one u need [cfusionx/wwwroot/artstore/store.html]

give the web site a alias - u wld want to access it with

so lets say u wanna access it like http://localhost:8500/anandkp/ ... :)
then the alias name shld be "anandkp"
& set the default document for the site as "store.html"

so then when u enter "http://localhost:8500/anandkp/" - u get ur website from the path cfusionx/wwwroot/artstore/store.html ... without having to recode !

let me know ...

K'Rgds
Anand
0
 
LVL 4

Accepted Solution

by:
procept earned 500 total points
Comment Utility
guys.... he's running MX with the internal web server, no IIS, no PWS. ;-)))

finstone, 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 17

Expert Comment

by:anandkp
Comment Utility
well thats y i mentioned web server & [IIS] in brackets ...
cos he mentioned " i think i have IIS "
0
 
LVL 4

Expert Comment

by:procept
Comment Utility
but, he also said "never configured it", and port 8500 always is MX web server. ;-))
0
 

Author Comment

by:finnstone
Comment Utility
ok ANAND i configured IIS for cfmx..when you say click on your web site..what exactly am i clicking on? i dont see my web site named

btw, i am awarding points to the chris for answering the question..this is all a moot point because i actually changed all my hardcoding to refelct the name change..but this will be helpful in the future im sure!
0
 
LVL 17

Expert Comment

by:anandkp
Comment Utility
:) ok chris i give up :)

Finnstone - if u say u have ur web site configured in IIS - then u shld be able to see ur name there
just installing IIS & configuring ur wen site on IIS are 2 different things.

Once u map ur site - thru IIS - u'll use a alias [site name] & a IP address for ur web site - slong with the fodler path & default doc for ur site. when u have done all of these - ur web site is configured in IIS.

K'Rgds
Anand
0
 

Author Comment

by:finnstone
Comment Utility
ok people are having trouble seeing my site. i think IIS might help. but i dont understand.

i see my name..that is my site!??
0
 

Author Comment

by:finnstone
Comment Utility
my version of cfmx is developer and i think this is the reason other people cannot see it. IS THERE ANYWAY AROUND THIS?
0
 
LVL 17

Expert Comment

by:anandkp
Comment Utility
if u can see it - then all the people connected to the server [thru intranet / internet] shld also be able to see it !
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now