This is the first time I try GRAV. My first deployment is as following:
- Package everything in a docker image. I use the official grav docker:
- Deploy a docker container in a docker hosting platform. I use Arukas.io
- Put a cloudflare in front of my GRAV container
Everything works well on local test. It also works very well on arukas when accessing the website directly via arukas’s URL: for example
But when I put the cloudflare CDN in front of it follow this guide https://support.arukas.io/hc/en-us/articles/360000844008-How-can-I-set-a-custom-domain-name (I need a custom domain name), when accessing my site via my custom domain name, for example
https://www.example.com (also SSL). I got the following weird behaviors:
Accessing the home (root) page, always get redirection:
In the stdout of the docker container, I see the following apache log:
instance #0 | 126.96.36.199 - - [05/Aug/2019:02:08:02 +0000] “GET / HTTP/1.1” 302 686 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36”
instance #0 | 188.8.131.52 - - [05/Aug/2019:02:08:02 +0000] “GET /https,%20https:/www.example.com HTTP/1.1” 404 7647 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36”
Accessing any other pages, always get 404. For example
https://www.example.com/aboutIn the apache log, I see:
instance #0 | 184.108.40.206 - - [05/Aug/2019:02:15:45 +0000] "GET /about HTTP/1.1" 404 7647 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
Anybody knows what could be the cause?
I notice a difference between accessing from cloudflare and accessing via arukas: when being from cloudflare, the referrer is empty ("-").