Dear Aleks,
Apologies we missed answering one of your previous questions.
>>>>I still assume that you try to run http://open-emr.org
We have three products written in PHP and HTML5. All of these are
facing similar issues due to relative hyperlinks to itself. One of
these is OpenEMR, whose code we posted. We will work on the others
after we succeed here.
We are working on the two pointers you provided and will share with you
later today:
(i) openemr/../globals.php and
(ii) <?php print_r($rootdir);?> output.
(iii) current HAProxy config
Thank you.
Sincerely,
--
Susheel Jalali
www.Coscend.com
-------- Original Message --------
From: Aleksandar Lazic <al-hapr...@none.at>
Date: Mon, November 02, 2015 11:30 pm
Dear Susheel Jalali
Am 02-11-2015 20:24, schrieb Susheel Jalali:
> Dear Aleks,
[snipp]
> We modified this solution (of Apache) to work with HAProxy, but did
> not succeed. Is there any insight anyone could provide?
What have you changed?
Please post your current config.
> +++++++++++
> Internal Hyperlinks in our PHP page:
> +++++++++++
> <?php echo
> "$GLOBALS[logoBarHeight],$GLOBALS[titleBarHeight]" ?>,*" cols="*"
> frameborder="NO" border="0" framespacing="0">
> <?php echo
> $rootdir;?>/login/filler.php" name="Filler Top" scrolling="no"
> noresize frameborder="NO">
> <?php echo
> $rootdir;?>/login/login_title.php" name="Title" scrolling="no"
> noresize frameborder="NO">
> <?php echo $rootdir;?>/login/login.php" name="Login"
> scrolling="auto" frameborder="NO">
> </frameset>
please add <?php print_r($rootdir);?> to the PHP page and post the
output.
You have not answered if my Assumption was right!
I still assume that you try to run
http://open-emr.org
therefore please take a look into this code.
https://github.com/openemr/openemr/blob/8b9d250de3c76aeb4f706342c2f3c3f1e1b9c6db/interface/globals.php#L137
https://github.com/openemr/openemr/blob/8b9d250de3c76aeb4f706342c2f3c3f1e1b9c6db/interface/globals.php#L38
Best regards
Aleks
> On 10/31/15 14:36, Aleksandar Lazic wrote:
>> Dear Susheel Jalali.
>>
>> Am 31-10-2015 08:43, schrieb Susheel Jalali:
>>> Dear HAProxy Developers:
>>
>> [snipp]
>>
>>> This is same as what Apache server’s mod_proxy_html serves to:
>>> rewrite >>> href="http://appserver.example.com/foo/bar.html">foobar
>>
>>> to >>> href="http://www.example.com/appserver/foo/bar.html">foobar.
>>
>>> Is there an output filter equivalent of Apache server’s
>>> mod_proxy_html
>>> in HAProxy to rewrite internal links in:
>>> (i) a PHP page?
>>> (ii) an HTML page?
>>
>> Assumption:
>>
>> you use http://open-emr.org
>>
>> conclusion:
>>
>> http://www.open-emr.org/wiki/index.php/Apache2_Notes
>>
>> follow up
>>
>>
http://blog.haproxy.com/2014/04/28/howto-write-apache-proxypass-rules-in-haproxy/
>> Have I assumed right and was you able to step forward?
>>
>> BR Aleks
>>