Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: “Sorry you’re not allowed to access this page” after migrating to https

Discussion in 'Misc WordPress Requests' started by akshatjiwan, Oct 31, 2017.

  1. akshatjiwan

    Guest

    Reply To: “Sorry you’re not allowed to access this page” after migrating to https, by akshatjiwan

    Hi Vince

    Apologies for the delayed response. The issue was with nginx configuration. To verify that I simply replaced my nginx configuration with Ashley Rich’s configuration on github and the problems disappeared. Although I didn’t try to debug what was wrong with the original configuration I have a couple of ideas on what might have went wrong. [Please note that they are just theories. I have not been able to test them successfully]

    1. There is no need for proxying wrodpress when you are using nginx as the webserver. It needlessly complicates things. Not only you have to set appropriate headers to the proxy but also in wordpress configuration files. This is simple enough to do in practice but it makes it extremely hard to debug errors. The number of places where things can go wrong increases dramatically. With so many pieces you can’t really say where things are going wrong.

    2. I was not clearing the cache when moving from one scheme to the other. It is quite possible that the session that the cache contained was invalid. Furthermore I had no idea how the proxy cache actually interacts with wordpress. What invalidates the cache? What adds new items to the cache? I could also not find any documentation that explained this well.

    Anyway using a better configuration file has solved my issue. For any one else seeing this thread my recommendation would be to use configuration files that have been tested in a variety of situations rather than writing your own even if it is simple enough to do so.

    Thanks once more for all your help!

    Best,
    Akshat

    Reply To: “Sorry you’re not allowed to access this page” after migrating to https
     
    #1

Share This Page

Web Hosting