I was just told something I was doing was not necessarily going to be an option so I have to ask this question. Examples and instructions don’t exactly seem to be doing what I was expecting, but I might be assuming too much.
Typically I create a website my creating a directory in my web root, dumping the code there, CF mapping /coldbox to wherever I have CB installed then creating a local host record (and apache vm host) to that directory so I can not only use something like DEV.MYSITE.COM to get to the site, but also so that I can ALWAYS treat everything as if it is in the root.
But I’m told the server I am going to publish to may not give me that option (don’t ask) so I want to be able to NOW do something like LOCALHOST/MYSITE. Changing NOTHING, if I do that, I get an error saying that it cannot find my path “model.someservice”…which I assume because really it needs to be “mysite.model.someservice” (which tested, works)…but obviously I don’t want to have to go and change all my code that already exists.
I expected to be able to change one or two special variables in application.cfc, but both tests failed.
what am I missing?