Can someone help please? when I enable cache in reverse proxy, can't log in in wp-admin of my site.

    jabr don't enable cache in reverse proxy. After enabling cache login issue comes.

    7 months later

    aaPanel_Jose

    1. Create example.com website in A server
    2. Create an empty site on server B using your domain name

    Is your domain name on point number 2 a random domain or it should be the same as example.com on point number 1?

    a year later

    x3inspire
    What error message is there when I log in after enabling the cache? Check logs and error logs
    Cache these files after opening the cache gif|png|jpg|css|js|woff|woff2
    You can modify the Conf to remove the affected files

      5 months later

      Hi, i think i manage to make the reverse proxy working... i test it by typing the server B's domain(i use my direct ip) and it directs me to server A website, but the url changes to server A's domain. how to be able to show the server A content while the url still from the server B's domain?

      Considering you're talking about reverse proxy and not redirect, you should be able to fine tune any detail about it. Maybe try to indicate the domain you want to display in the address bar in the headers, like this, beside the proxy_pass directive:

      proxy_set_header Host server_b_domain;

        hilord Hi, thanks for your suggestion, I tried this using different site with a domain name instead as the server B's domain name. but the url, still changes to server A's domain.

          aaP_fallingrais Hmmm, did you well restart the web server service (nginx or apache?) after the modification in conf? Did you test the validity of the overall config (e.g. "nginx -t") with success?

          About the 502 Bad Gateway, it says that the proxy received an invalid response from the upstream server... It could be because there's no valid certificate at a point, because the target server doesn't listen to the port 443 on the right IP, because there's too many redirections (e.g. sometimes when the proxy sends the wrong scheme in headers* and final server is trying to force SSL while it's already there)... Well, first, maybe you should look at both server logs.

          *proxy_set_header X-Forwarded-Proto http;

          4 months later


          i have installed fresh AA panel , and apache nothing other software,
          i am testing for reversproxy setup. But on my side, showing only these option , not full like discussion on this topic,
          any body help to compelete my proxy setup

          After that i put detail in these option then , redirect my website on this url : (https://domain.com/cgi-sys/defaultwebpage.cgi)
          not opening my site content data, from Server B , I think request going on server B but not proper root, Server A installed AA panel , and server B installed WHM. why showing this error, any body help me?

            6 months later

            Hello friends, I am trying to use my website with port 8080 but it always gives me the error that the port range is wrong

              Hello, it is recommended that you use other ports. This problem is used by tomcat by default.

              joseseo