I’ve made a little progress on this issue. I think I’m missing something fundamental I feel.
I found sample rewrite rules for Apache on the tutorial and popped an .htaccess file containing them in the root of the project directory. That fixed the problem with the Main event handler not working properly.
If I move the project out of its own directory and into the root directory of the web server, almost everything works properly. The test links generate correctly and the tests all run and execute.
Oddly enough, the /healthcheck url doesn’t resolve like it does when I run the project in the embedded development server no matter where my project lives.
I can “fix” the links by removing the #getSetting( “appMapping” )# code from in front of them on the index page on the default project. However when I do that, I get a failed reference to the test runner page. It’s an absolute reference starting with /testbox, which of course doesn’t resolve without that folder being in the root. If I make it a relative reference (…/testbox), something else breaks. I get this error “Could not find the ColdFusion component or interface testbox.system.TestBox”.
All of my issues seem to be related to references not working properly when the project is in the subfolder. I tried to establish a mapping in the Application.cfc file for /testbox but it didn’t work. I’m unclear at this time if I have to do more with rewrite rules or if there’s some configuration I’ve missed along the way. I’m not sure if my inexperience with Apache is holding me up, or if there’s something fundamental I’m missing about Cold Fusion…or Coldbox!