Please elaborate more, do both nginx and apache see this? I apologize in advance, I am a clinician, not a programmer.
Looks like this is an array?
I keep getting this error: session id missing. Or something like it.
Is it possible to just make the code send the user back to the login screen?
Thanks Sandra
This is interesting!
My first guess would be to do a rewrite or return.
The important thing is to include the site=mysite query parameter.
$_SESSION[‘site_id’] is a session variable and gets store into a cookie by login via globals include.
I am sorry, this was a loaded question.
What I meant, by the second part of it should probably go on a different thread.
I will start a new thread.
And I will clarify the mapping question. Say I was crazy enough to want to manage EHR for other doctors, and I wanted to map their sites at the level of the server, whether nginx or apache. What I would like to do is for example
I’m going to let the joke that begs to be said, go by!
Not crazy but usually multi is facility based. Still, it runs in it’s own database. The only thing shared is source code. Site id has two main purposes, database and document directory selection.
In the end you should be able to add a rewrite using a regx to catch end of uri then rewrite to a query string.
I’m not nginx literate so you’re on your own there.