Learn about Centmin Mod LEMP Stack today
Register Now

Cloudflare Authenticated Origin Pull & Hostname

Discussion in 'Domains, DNS, Email & SSL Certificates' started by redbot, Apr 30, 2020.

  1. redbot

    redbot Dreaming of Debmin Mod Premium Member

    47
    10
    8
    Mar 30, 2020
    Ratings:
    +23
    Local Time:
    2:10 AM
    I'm follow the guide to set up authenticated origin pulls,
    Cloudflare - Setting Up Cloudflare Authenticated Origin Pulls Protecting Your Origins


    And I noticed the caveat,
    If this is the case, how will I access services on my hostname (such as phpmyadmin) since it's "gray clouded"?
     
  2. eva2000

    eva2000 Administrator Staff Member

    49,037
    11,235
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,487
    Local Time:
    5:10 PM
    Nginx 1.21.x
    MariaDB 10.x
    It's on a per nginx domain vhost basis. So if you have 2 nginx domains for mainhost.domain.com and domain.com but you only setup Cloudflare Authenticated Origin Pulls on domain.com's nginx vhost, only that will have such restriction. If mainhost.domain.co is gray clouded but nginx's vhost for mainhost.domain.com isn't setup for Cloudflare Authenticated Origin Pulls, then you can access mainhost.domain.com. But it will fail if and only if you setup Cloudflare Authenticated Origin Pulls on mainhost.domain.com's nginx vhost config file which you wouldn't do for gray cloud.