Solved

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

Posted on 2003-11-04
14
155 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
ID: 9683302
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
ID: 9683321
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
ID: 9683348
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
ID: 9683374
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
ID: 9683421
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
ID: 9684240
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
ID: 9685118
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 17

Expert Comment

by:anandkp
ID: 9685167
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
ID: 9685239
but, he also said "never configured it", and port 8500 always is MX web server. ;-))
0
 

Author Comment

by:finnstone
ID: 9689071
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
ID: 9692014
:) 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
ID: 9692067
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
ID: 9692128
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
ID: 9692222
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

864 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

19 Experts available now in Live!

Get 1:1 Help Now