• Every single post I’ve found when googling this involves SSL. But I just want regular http to work on an nginx reverse proxy with wordpress.

    Here’s my nginx config:

    server{
            listen 80;
            server_name ericsbinaryworld.com www.ericsbinaryworld.com;
    
            location / {
    
            proxy_pass https://127.0.0.1:8008;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header Host $host;
    }
    }
    

    I haven’t changed anything in the wp-Config because all the changes I see involve https.

    How can I fix this?

    Thanks!

    • This topic was modified 4 years, 5 months ago by ericmesa.
Viewing 3 replies - 1 through 3 (of 3 total)
  • This really isn’t a WordPress issue once you know the WordPress is reachable from the outside world and that, for the most part, would be on your Apache server anyway. I do hope you’re running Apache as the webserver!

    So, once you know Apache is talking to the outside world and then WordPress is working through that Apache you might want to raise the rest of this issue over on someplace like StackExchange where you will probably find some knowledgable help.

    I do like the concept and many webhosts use the same setup to gain some solid performance numbers.

    Good luck with this, I think you will like it, and let us know if you need further WordPress help.

    Thread Starter ericmesa

    (@ericmesa)

    Isn’t it? I’ve seen that configs need to changed in wp-config if you’re being a reverse proxy and using SSL. Is the same not true without SSL? Because the site is reachable without the reverse proxy.

    Well… If this was my setup and I was new to the subject, I’d probably invest the several hours of research needed to set this up properly on my own. I’m lucky as my preferred control panels can handle running an Nginx Proxy themselves which cuts down on the config labor.

    There are many variables that depend on the hardware setup that I’d rather not steer you down a blind hole by quoting ‘do this and then do that’ but you will possibly need to change a few things in wp-config somewhere in this exercise.

    Asking over at StackExchange will put you in touch with a group of people who can ask the right questions and then quote with authority the steps you’ll need to take.

    Other than that… If you really want a fairly easy proxy setup then forget the Nginx box and go for Cloudflare using their plugin for WordPress and the W3Total Cache that I prefer and maybe consider a CDN to work with that.

    A bonus is you can lean on Cloudflare’s SSL and using their plugin will make this very easy to install and even put your origin server (that Apache I’m hoping you are running) behind SSL also. Give that some thought as Cloudflare’s ‘multiple edge servers’ may be all the Proxy you’ll ever need.

    • This reply was modified 4 years, 5 months ago by JNashHawkins.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Making WordPress work with nginx reverse proxy on port 80’ is closed to new replies.