This topic is locked

Reverse Proxy

1/29/2019 10:22:21 PM
PHPRunner General questions
P
pinoyoutdoor author

My phprunner projects are behind the apache REVERSE PROXY, the Forgot Password feature returned a wrong URL in the email.
How to fix this?

admin 1/30/2019

I'm afraid there is not enough info.
What is the URL of your application and what URL is being sent in the email?
Also what version of PHPRunner is that?

P
pinoyoutdoor author 1/31/2019

PHPR 9.6 (https remove and subdirectory remove)
Public URL:

https://company.com/to/phprunner/login.php'>https://company.com/to/phprunner/login.php


Email sent in forgot password message:

http://company.com/phprunner/login.php



**PHPR 10.0 (https retain but subdirectory remove)**
Public URL:
```
https://company.com/to/phprunner/login.php'>https://company.com/to/phprunner/login.php
```
Email sent in forgot password message:
```
https://company.com/phprunner/login.php
```
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**Reverse proxy setting:**
```
ProxyPreserveHost On

ProxyRequest Off

ProxyVia full

ProxyHTMLEnable On
ProxyPass /to http://server-ip-address:80/'>http://server-ip-address:80/

ProxyPassReverse /to http://server-ip-address:80/'>http://server-ip-address:80/
```
admin 2/1/2019

I'm not seeing anything wrong here. PHPRunner's app cannot and should not know it runs behind a reverse proxy. What you can do in PHPRunner 10 though is to modify Forgot Password email template to include a correct URL.