Point an NGINX Reverse Proxy to Wordpress Running on Docker

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2020
  • This video shows you how to set up an NGINX Reverse Proxy to route traffic to anything running in docker. In this case, it'll route to the Wordpress instance we have been building over the past few videos.
    We need to do this before we can secure our domain name with HTTPS using letsencrypt
    Previous videos:
    Registering a domain with Google Domains: • How to transfer domain...
    Creating a Wordpress instance on GCP: • Run Wordpress for Free...
    How to Point your Domain at a Google Cloud Instance: • How to Point your Doma...
    Code snippet for nginx configuration:
    server {
    root /var/www/html;
    listen 80;
    listen [::]:80;
    server_name yourdomain.com www.yourdomain.com;
    location / {
    proxy_pass 127.0.0.1:8080;
    proxy_redirect off;
    proxy_set_header Host $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-Host $server_name;
    proxy_set_header X-Forwarded-Proto $scheme;
    }
    }
    GitHub repo: github.com/chrisbmatthews/wor...
    Google Cloud Platform: cloud.google.com
    Music: / petersawatzky

ความคิดเห็น • 16

  • @NeonSphinx89
    @NeonSphinx89 ปีที่แล้ว

    Thank you! I'm late to the party, but for some reason I just wasn't getting it when explained by others. They kept going into all of the different types of docker networks. You broke it down so by step in a way that made sense.

  • @orantesblanks1357
    @orantesblanks1357 3 ปีที่แล้ว

    I struggled with this until this video. Extremely helpful....thank you!

  • @zyghom
    @zyghom 2 ปีที่แล้ว

    man, you are genius! the way you explain difficult things ... amazing

  • @laurenbridges3329
    @laurenbridges3329 2 ปีที่แล้ว

    this is filling in so many gaps for me, thank you!

  • @scoa_dev8551
    @scoa_dev8551 3 ปีที่แล้ว +2

    Perfect, I just need the SSL Single-Site & wildcard.
    I would love it if you make a video series about making multiple sites with Nginx & docker-compose with WP in the same instance. As you were explaining in this video. Thank you for your post.

  • @shivakumarpanaganti258
    @shivakumarpanaganti258 3 ปีที่แล้ว

    Great informative video!! Eagerly waiting for the next one,, SSL cert using letsencrypt ♥️🔥

  • @john-davidbennett1072
    @john-davidbennett1072 2 ปีที่แล้ว

    This was perfect. All the examples I find about reverse proxy / wordpress include the nginx server as part of the docker-compose. I am hosting multiple websites behind the webserver / some containers, some not. This solved all of my issues.

  • @PhilippeVaillancourt
    @PhilippeVaillancourt 3 ปีที่แล้ว

    Great video. Glad you're back at it.

  • @shobinfrancis8370
    @shobinfrancis8370 3 ปีที่แล้ว

    Very helpful 😍🤩

  • @lastofdev777
    @lastofdev777 2 ปีที่แล้ว

    Thank you very much

  • @ArnoldMG
    @ArnoldMG 3 ปีที่แล้ว +1

    very useful tutorials you have... thanks ... It would be nice if you show docker-compose for Wordpress Multi Site (subfolders) + Apache + NGINX reverse proxy + SSL + Cache (redis?) ... un abrazo bro!

  • @wchorski
    @wchorski 2 ปีที่แล้ว

    lifesaver

  • @scammerscrimesecurityroman8294
    @scammerscrimesecurityroman8294 3 ปีที่แล้ว

    Hi Chris, can u pls make a video instructing how to use docker https to make a multiple site wordpress website on google cloud platform? thanks!

  • @smartfrenaku542
    @smartfrenaku542 2 ปีที่แล้ว

    Sir,please help me.
    If i use reverse proxy, my site shor "skip to content"
    How to fix sir