http://coldfusion.com logo
d

dswitzer

06/02/2022, 9:31 PM
In migrating from Apache/ACF to Nginx/Tomcat/Lucee, one of the changes we're seeing in FusionReactor is that URIs using path_info are not showing up in the URI in FR. In ACF, we'd see something like: https://www.acme.com/index.cfm/item/a09sada1234/ But now we're just seeing: https://www.acme.com/index.cfm Our requests end up containing a
xajp-path-info
header which contains the
/item/a09sada1234/
value, which I can dump out to the URL summary, but it's not as clean as having it be part of the URL. Is there a trick to get this working in FR?
@carehart Would you have any insight on this?
c

carehart

06/10/2022, 3:59 PM
Good news there. I only have a couple of minutes between calls. To be clear, you mean the request works fine in Lucee, but it's just that FR does not let you distinguish one from another, for lack of that path_info, right? In that case, in one of the recent updates to FR (a few months ago), they added the ability to have ANY header shown on that page of requests (as you may know, headers are already available in the req details page). See the request>settings page, and the last setting. Past in the header, click add, and enjoy. 🙂 Let me know how it goes. And for future reference, I don't live in slack, so can easily miss messages here for days. Better to reach out via means available at carehart.org/contact.
Dan, did you take advantage of the FR feature I mentioned here? Have you solved your problem?
d

dswitzer

06/21/2022, 12:57 PM
@carehart Thanks. I had already implemented the feature to add header, I just wanted to try and get it appended to the URL. I opened up a feature request with them. I'm also going to look to see if there's another way I can configure the Nginx proxy to send the requests to Lucee to get the URLs to show up the same way. Michael (from FR support) also gave me some code using the FRAPI which would allow me to overwrite the URL that's being show:
Copy code
if( len(cgi["xajp-path-info"]) ){
    var frapi = createObject("java","com.intergral.fusionreactor.api.FRAPI").getInstance();
    var txn = frapi.getActiveTransaction();
    txn.setUrl(replace(cgi.request_url, "/index.cfm", "/index.cfm" & cgi["xajp-path-info"]));
}
c

carehart

06/21/2022, 1:32 PM
Sweet, on the last point. On the first (that you'd tried the new feature), it just was not obvious (to me, at least). Hope good comes from the efforts, for you first and perhaps in time for others also.
4 Views