gavinbaumanis
05/30/2022, 8:48 AMthis.mappings["/dbsetup"] = "#this.basePath#/dbsetup/";
And when I dump the variables scope, inside the this struct is;
/dbsetup string /srv/www/app/dbsetup/
Where the path is shown, correctly.
If I attempt to go the URL;
<http://myApp.localhost:8080/dbsetup/index.cfm>
I get an error, stating the page can't be found because the dbsetup/index.cfm
is being appended to the Application Root, as you can see from the CGI scope;
cf_template_path string /srv/www/app/webroot/dbsetup/index.cfm
If I create the mapping within the Lucee Administrator, the mapping works correctly / as expected.
What am I missing?
Thanks!zackster
05/30/2022, 10:18 AMgavinbaumanis
05/30/2022, 2:05 PMgavinbaumanis
05/30/2022, 2:28 PMgavinbaumanis
05/30/2022, 2:38 PMbdw429s
05/31/2022, 6:49 PMbdw429s
05/31/2022, 6:49 PM/srv/www/app/webroot/dbsetup/index.cfm
bdw429s
05/31/2022, 6:49 PMbdw429s
05/31/2022, 6:49 PMbdw429s
05/31/2022, 6:50 PMgavinbaumanis
06/01/2022, 3:17 AM/srv/www/app/dbsetup
The this.mapping
setting in Application.cfc is correct;
The issue is, that mappings defined in the Application.cfc are not "Web Accessible", unlike the Lucee Admin there is no option to make them so, either.
So at least with our MachII application, the "/dbsetup/filename.cfm" is being appended to the path of the application root.bdw429s
06/01/2022, 4:48 AMThe issue is, that mappings defined in the Application.cfc are not "Web Accessible",No, this is not correct. This has nothing to do with whether or not the CF admin is "web accessible" and has everything to do with a chicken/egg problem
bdw429s
06/01/2022, 4:48 AMbdw429s
06/01/2022, 4:50 AMbdw429s
06/01/2022, 4:50 AMbdw429s
06/01/2022, 4:51 AMgavinbaumanis
06/01/2022, 4:52 AMbdw429s
06/01/2022, 4:52 AMbdw429s
06/01/2022, 4:52 AMHow does it work if it is set in the Lucee Admin?Because that mapping exists during bullet #2!! 😉
gavinbaumanis
06/01/2022, 4:53 AMbdw429s
06/01/2022, 4:53 AMbdw429s
06/01/2022, 4:53 AMbdw429s
06/01/2022, 4:54 AMbdw429s
06/01/2022, 4:54 AMbdw429s
06/01/2022, 4:54 AMbdw429s
06/01/2022, 4:54 AMbdw429s
06/01/2022, 4:54 AMgavinbaumanis
06/01/2022, 4:54 AMbdw429s
06/01/2022, 4:55 AMbdw429s
06/01/2022, 4:55 AMgavinbaumanis
06/01/2022, 4:55 AMbdw429s
06/01/2022, 4:55 AMgetRealPath()
method t help location the filebdw429s
06/01/2022, 4:56 AMbdw429s
06/01/2022, 4:56 AMgavinbaumanis
06/01/2022, 4:57 AMbdw429s
06/01/2022, 4:57 AMbdw429s
06/01/2022, 4:57 AMso could "my" solution - if I want to NOT use the Lucee admin , create virtualdirectories for the host?I don't understand what this means, lol
bdw429s
06/01/2022, 4:57 AMgavinbaumanis
06/01/2022, 5:00 AMgavinbaumanis
06/01/2022, 5:01 AMbdw429s
06/01/2022, 5:03 AMbdw429s
06/01/2022, 5:04 AM.cfm
just get handed off to Lucee regardless and it's 100% up to Lucee to decide what they map to.bdw429s
06/01/2022, 5:04 AMbdw429s
06/01/2022, 5:04 AMbdw429s
06/01/2022, 5:04 AMgavinbaumanis
06/01/2022, 5:05 AMbdw429s
06/01/2022, 5:06 AMbdw429s
06/01/2022, 5:06 AMgavinbaumanis
06/01/2022, 5:40 AMgavinbaumanis
06/01/2022, 6:02 AMbdw429s
06/01/2022, 5:35 PM.cfm
it doesn't even bother looking at its alises, it just shoves the request off to Lucee and says, "here, you deal with this!".bdw429s
06/01/2022, 5:36 PMbdw429s
06/01/2022, 5:37 PM