medsupporter wrote on Tuesday, October 19, 2010:
Hello folks.
I have a very simple need. I am trying to change the default web directory open path such that \\localhost will bring up openemr with out the need to type \\localhost\openemr.
More importantly, subdomain.myservername.com will directly bring up openemr and I don’t need to constantly remind folks to enter in the /openemr part……
I tried to figure this out, but have run into some problems I can’t seem to figure out.
First, I installed a valid SSL certificate, which works, just as an fyi.
Then, I changed the httpd.conf file in two places to make apache realize that the main open directory should be \openemr and not the xampp control panel that’s at the htdocs root. I changed:
<Directory “/xampp/htdocs/openemr”> AND DocumentRoot “/xampp/htdocs/openemr” – adding “openemr” to both….
Then, I changed globals.php in this way $web_root = “openemr” - I removed the openemr, but left the qoutes so to TRY and tell the files that the servername\ should open openemr, and the \openemr part is not needed……
What now works is that when I type in: https://subdomain.myservername.com/openemr things still work fine……
When I type in: https://subdomain.myservername.com/ I get the following error:
Access forbidden!
You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
10/19/10 16:34:25
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9
Then, when I type in:
http://subdomain.mydomainname.com (notice the not httpS) not ssl.
I get the following error:
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
10/19/10 16:35:38
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
10/19/10 16:35:38
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9
I guess I’m going about this in the wrong way…. Can someone point me in the right direction?
THANK YOU!!!!
Tom