Reverse proxy rewrite question...
Posted: 08 Dec 2016 13:02
I have EFA setup in a VM behind a reverse proxy in Windows IIS in a subdirectory called efa. It works great except for one thing that I can't figure out, which is when EFA redirects from the login page to the mailscanner status page:
www.mysite.com/efa/mailscanner/login.php SHOULD redirect to www.mysite.com/efa/mailscanner/status.php after a successful login. Instead, it drops the "efa" and redirects to www.mysite.com/mailscanner/status.php forcing me to insert the "efa" every time.
All the other links work perfectly - only that one fails. Thus I don't think it's an IIS issue or an Apache issue. Rather, I think the EFA/Mailscanner code is pulling the URL from somewhere and internally redirecting the login URL to the status URL on its own. I've looked through all the php files but I can't figure out how to tell Mailscanner, after a successful login, to redirect to /efa/mailscanner/status.php rather than /mailscanner/status.php.
Does anyone know where in the code it's determining the URL after a successful login so I could manually insert the "efa" myself? Thanks.
www.mysite.com/efa/mailscanner/login.php SHOULD redirect to www.mysite.com/efa/mailscanner/status.php after a successful login. Instead, it drops the "efa" and redirects to www.mysite.com/mailscanner/status.php forcing me to insert the "efa" every time.
All the other links work perfectly - only that one fails. Thus I don't think it's an IIS issue or an Apache issue. Rather, I think the EFA/Mailscanner code is pulling the URL from somewhere and internally redirecting the login URL to the status URL on its own. I've looked through all the php files but I can't figure out how to tell Mailscanner, after a successful login, to redirect to /efa/mailscanner/status.php rather than /mailscanner/status.php.
Does anyone know where in the code it's determining the URL after a successful login so I could manually insert the "efa" myself? Thanks.