Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Force ssl broke grav

Started by Christophe 7 years ago · 3 replies · 1086 views
7 years ago

Hello,

When I try to Force ssl in configuration system advanced, I have an error :
"fetch failed, network error ..."
after I have a blank page that says "The cause of this problem can be the deactivation or refusal of cookies"

My firefox isn't configured to refuse cookies, my adblockers are disabled for my Grav install

My install is done on my hosting on a subfolder of my own site, I want to make test Grav to a friend before he buy an host and do it on his host

Does Grav allow to be installed on a subfolder ?, because I'd like to do multiple install on my host to show variants for pages contents and CSS

Thanks for your answers
Christophe

7 years ago

I've my site back 😅

I changed my /use/config/system.yaml --> force_ssl to false

7 years ago

I would first test (if you haven't done yet) if the subfolder and subdomain is set to accept https:// - as such did you test that your subdomain is running as https://subdomain.domain.xxx ? Even without grav installed?

That's the first step. If that works it means it's a Grav site setup related issue....

7 years ago

Thanks for your answer 🙂

my domain is configured to force redirect to https with an htaccess file on root of domain

RewriteEngine On
RewriteCond %{HTTP:HTTPS} !on
RewriteRule (.) https://%{SERVER_NAME}/$1 [QSA,L,R=301]
Options -Indexes
<Files .htaccess>
order allow,deny
deny from all
</Files>*

My grav install is in a subfolder and not a sub domain

https://mydomain/foldertest/gravinsta

I looked after htaccess from Grav install and some lines looks like useful to test :

RewriteBase /

RewriteCond %{HTTP:X-Forwarded-Proto} https

RewriteRule .* - [E=HTTPS:on]

#

End - X-Forwarded-Proto

may I use them ?

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 4 days ago
1 93 4 days ago
Support · by Anna, 3 weeks ago
1 265 3 weeks ago
Support · by webmasterodp, 1 month ago
4 380 1 month ago
Support · by nwhitfield, 1 month ago
2 351 1 month ago
Support · by stell, 2 months ago
5 657 1 month ago