Hello. I’m new to the forum and hope someone can help me.
I used the search, but found nothing suitable.
System:
Ghost: v2.34.0
Nginx: 1.14.0
Ubuntu: 16.04
Browser: doesn’t matter.
I followed the instructions you can find in [1]. I am using the Nginx configuration, which can be found in [2]. The only difference is that I use “auth_basic”.
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:2368;
auth_basic "Login";
auth_basic_user_file /var/www/.htaccess;
}
Unfortunately, I cannot log in to the admin interface. The error message is:
Authorization header format is “Authorization: Ghost [token]”
During setup and when I try to log in, this error message appears.
Screenshot:
Does anyone know what I am doing wrong?
1] How to install & setup Ghost on Ubuntu 20.04 or 22.04
[2] https://github.com/TryGhost/Ghost-CLI/blob/master/extensions/nginx/templates/nginx-ssl.conf#L14