So I have a question in regards to the first time ...
# lucee
j
So I have a question in regards to the first time a site/app is requested that does not happen in acf but it does on Lucee. For instance, using the following example, if I have a site @ https://domain.com/ and the first request ( after starting Lucee ) would be made to something line https://domain.com/my-path/my-value/, it redirects to https://domain.com/index.cfm? and then any initial requests would work to the example path or any other. In ACF, this does not occur. Can someone explain why this happens in Lucee and how can I keep it from happening?
g
Might be a simple configuration issue.
Is suppose your request to domain.com/my-path/my-value is a rewrite rule in nginX or Apache, right?
Perhaps it is not picked up and you have a redirect to homepage in case of a 404?
q
It would be interesting to see if you have anything in the application.cfc that would cause it.. You might have something attached to the onSessionStart() or onApplicationStart() that would be driving that redirect.
z
Are you using mod cfml? This behavior is due to multi mode, if you switch to single mode, you don't need it anymore, multi mode is being removed in 7.0 ACF has only ever had single mode. Historically multi mode made sense on shared hosts but these days full context isolation is the norm
j
Hello @zackster, I am using mod cfml and multi mode as we have several sites running off Lucee via IIS and it seemed like it was still necessary as single mode did not work well in this scenario. I previously asked you about 2 separate ColdBox applications running in Lucee in single mode causing some collision.
@gert @quetwo, the issue is only on first request after a server start, after that it all works fine.
z
We talked about application namespace collision?
z
So I'm guessing the naming of the folders in context/cfclasses is possibly causing the collision in single mode? You can always open those class files in vscode (may need the red hat java extensions) and it will decode the byte code into java
I put together a test github action https://dev.lucee.org/t/single-mode-test-suite/14878