Nginx https reverse proxy to WordPress with Apache, http and different port

0
254
  1. Configure Nginx to use only https and redirect http to https.
  2. Reverse proxy in Nginx from bob.org:8080/blog to 192.168.1.10/wordpress in Apache.
  3. Force WordPress links to use port 8080

The following is the diagram summarised my server configuration:

    +--------------+
    |  Firewall    |
    | bob.org:8080 | 
    +------+-------+
           |
           |
           v
     +–––––––––+                  +––––––––––––––+
     |  Nginx  |      http        |  WordPress   |
     | (https) |+---------------->| Apache HTTP  |
     |         |                  | (port 80)    |
     +–––––––––+                  +––––––––––––––+ 

So you will say: “Are you completely insane ??!!”

https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04

https://cmanios.wordpress.com/2014/04/12/nginx-https-reverse-proxy-to-wordpress-with-apache-http-and-different-port/

http://www.tcbarrett.com/2013/08/why-does-my-wordpress-ssl-not-work-behind-nginx-proxy/#.WFn21n151rA

NO COMMENTS