Keywords: WordPress + NGINX + SSL - AWS - Technical issue - Secure Connections (SSL/HTTPS)
bnsupport ID: 6537ac96-3a3e-364a-3417-f8afe3a38091
Description:
Looked through numerous solution to no avail.
The tutorial on working with API suggests using Basic Auth plugin hosted on github.
I installed it before setting up HTTPS and it worked fine. When I added SSL certificates and changed website to use HTTPS it stopped working.
In API software's docs there's solution if it doesn't work to use
<IfModule mod_setenvif>
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
</IfModule>
in HTTACCESS file but Bitnami doesn't allow using HTTACCESS file.
Apache version of that I found on the forum is (and it seems to work on one of my websites running on Apache) :
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
BUT I chose to use NGINX and above solution is irrelevant.
I also found solution to add "fastcgi_pass_header Authorization;" to nginx config but I added to /opt/bitnami/nginx/conf/bitnami/bitnami.conf
with argument
location / {
fastcgi_pass_header Authorization;
}
after restart nginx couldn't start because of error.
Please help me solve this issue!