I really like the sites feature in openemr. One of my sites is named openemr.
However my staff and other doctor are having a very hard time adjusting. I have already set up all the links in the office computers, but when my partner wants to access from outside the office, he needs me to send him the link everytime. Otherwise he cannot access it.
I have tried several ways to work around this so the address remains unchanged, but no luck. This is what I have done in httpd.conf:
With alias directive I actually placed a modified index.php file in the /sites/openemr folder where I specifically set:
$site_id = ‘openemr’;
None of these have worked. All attemps are of course in a test server. I have used the alias directive succesfully in the past under other circumstances, but this time I am lost.
My goal is for my staff to use a simple address such as:
Sandra,
Rather than mucking with httpd.conf one approach would be to create another webpage in the root of your webserver that uses the header function.
If you make a new index.php page with content similar to this:
Then accessing that new php file will get you to the specific openemr site.
That should address your problem of getting a simpler address for the sitename issue.
Sherwin:
Yes I do have a static IP address, and all equipment including server is on 24/7.
I have domains with godaddy and just recently redirected my ip address to our domains.
hence now our link looks like this
Kevin:
I have my main practice. site name is openemr
I also do suboxone treatment which requires me to keep a separate set of charts. that site name is subtx, finally I have another primary care office at a different location, with a different TIN. that site name is otherpractice.
If a place a header file in the base openemr directory, how do I access the different sites?
Sandra,
To make sandra.net/openemr
go to your “main site”. Edit the index.php that is installed with openemr.
change the line in the if/else block for the default when no get value for site_id is specified to be “openemr” instead of “default”
Then to make sanrda.net/subtx work,
create a directory in your web root called subtx and create a new index.php file for that directory like I mentioned before which sets the site id.
Also, if you were echoing anything before the header function, that breaks things. You aren’t allowed to output anything before a server side redirect.
If you are having problems getting the syntax right for a redirect with headers, you might try a javascript approach.
Create a file like this. NOTHING else… No php tags.
Put that anywhere, and the browser should go to the other site.