apache subrequests and POST data

1 day ago 2
ARTICLE AD BOX

I am using apache reverse proxy to access esp32 devices. Before redirect, users are authenticated with "AuthType Basic". It is very simple authentication, for example, users cannot save their passwords. So I am trying to do php login on proxy.

In apache .conf I set this directives:

RewriteCond %{IS_SUBREQ} !true$ RewriteRule ^(/.*)$ /var/www/ ... /login.php [QSA]

login.php authenticates the users, then with virtual() function I do subrequest to devices.

It works nice except that the subrequest lost the POST data. Is the any way to preserve them? Or any other way how to do php login?

Read Entire Article