-
I am attempting to deploy Sendy (a self-hosted PHP mail app) using Bref, and Sendy uses apache as the webserver and an I know that Bref is using API Gateway + Lambda as the alternative for handling and serving requests based on the docs here. As there is no apache webserver when using Bref I'm looking for examples or ideas of how to handle a PHP app that is expecting apache when using Bref. Any help or pointers would be greatly appreciated. Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! To be honest, it might be hard to find a solution without digging into why Sendy redirects. I would expect Sendy to expect some headers (the URL, HTTPS, etc.) to be in a certain way. If it isn't, Sendy issues a redirect to another URL. What you could do to trick Sendy is to edit I don't know how to help more than that unfortunately. Oh, one other possibility is that Sendy doesn't work with a single |
Beta Was this translation helpful? Give feedback.
Hi! To be honest, it might be hard to find a solution without digging into why Sendy redirects.
I would expect Sendy to expect some headers (the URL, HTTPS, etc.) to be in a certain way. If it isn't, Sendy issues a redirect to another URL.
What you could do to trick Sendy is to edit
index.php
(or whatever that filename is) to manually override$_SERVER
(or any other necessary variable) with the values that Sendy expects.I don't know how to help more than that unfortunately.
Oh, one other possibility is that Sendy doesn't work with a single
index.php
entry file, but with multiple public files. In that case that might be even harder to run on Lambda.