Amazon Workspaces VM prevented from logging in to WordPress on DreamHost

I have several WordPress websites being hosted on DreamHost. I decided to set up an Amazon WorkSpaces VM to do my WordPress development because my current computer is under-performing (I have a new one on the way). However, I can’t log in to any WordPress dashboard from the Amazon Workspaces VM. I also tried logging … Read more

Nginx 403 forbidden for all files

One permission requirement that is often overlooked is a user needs x permissions in every parent directory of a file to access that file. Check the permissions on /, /home, /home/demo, etc. for www-data x access. My guess is that /home is probably 770 and www-data can’t chdir through it to get to any subdir. … Read more

forbidden 403 on image URLS

Looks like when the HTTP request header referrer is anything other than http://4chan.org, I get this issue. Ive simply added the below to the HTML page and its fixed the problem: Once your Angular app is loaded, you can also use Firefox Developer Console (Network Tab) modify image request (ie 403) and remove referrer header to … Read more

403 Forbidden vs 401 Unauthorized HTTP responses

A clear explanation from Daniel Irvine: There’s a problem with 401 Unauthorized, the HTTP status code for authentication errors. And that’s just it: it’s for authentication, not authorization. Receiving a 401 response is the server telling you, “you aren’t authenticated–either not authenticated at all or authenticated incorrectly–but please reauthenticate and try again.” To help you … Read more