# Confessing a Sin - GitHub HTTPS not rendering

**URL:** <https://discourse.gohugo.io/t/confessing-a-sin-github-https-not-rendering/37719>\
**Category:** support\
**Created:** [March 17, 2022, 3:53pm UTC](https://discourse.gohugo.io/t/confessing-a-sin-github-https-not-rendering/37719 "2022-03-17T15:53:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramon](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ramon/32/11980_2.png) [@Ramon](https://discourse.gohugo.io/u/Ramon)\
**Post date:** [March 17, 2022, 3:53pm UTC](https://discourse.gohugo.io/t/confessing-a-sin-github-https-not-rendering/37719/1 "2022-03-17T15:53:48Z")

</div>

> Mixed Content: The page at ‘[https://ramonmoorlag.nl/](https://ramonmoorlag.nl/)’ was loaded over HTTPS, but requested an insecure stylesheet ‘[http://ramonmoorlag.nl/assets/style.css](http://ramonmoorlag.nl/assets/style.css)’. This request has been blocked; the content must be served over HTTPS.

I’ve tried to set the Cloudflare SSH settings to flexible and the config.toml to

> baseurl = “/”

Content CNAME:  
`ramonmoorlag.nl`

How can I resolve this problem?  
[Source Repo](https://github.com/moorlag/moorlag.github.io)

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [March 17, 2022, 4:29pm UTC](https://discourse.gohugo.io/t/confessing-a-sin-github-https-not-rendering/37719/2 "2022-03-17T16:29:17Z")

</div>

First, your baseURL should be `https://ramonmoorlag.nl/`.

Second, this appears to be a hosting configuration problem, not a Hugo problem.

This link on your home page:

```nohighlight
https://ramonmoorlag.nl/about

```

Brings me to:

```nohighlight
http://ramonmoorlag.nl/about/ 

```

I would double check your Cloudflare configuration, or reach out to their support team.

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [March 17, 2022, 4:32pm UTC](https://discourse.gohugo.io/t/confessing-a-sin-github-https-not-rendering/37719/3 "2022-03-17T16:32:25Z")

</div>

Yeah, and don’t try to appease the http-occurences, but fix them. That is better than hacking the error messages away. The easiest way should be (if it all is on YOUR host/domain) to set the “always SSL” on cloudflare to on.

---

<div class="post-metadata">

**Author:** ![Ramon](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ramon/32/11980_2.png) [@Ramon](https://discourse.gohugo.io/u/Ramon)\
**Post date:** [March 17, 2022, 7:17pm UTC](https://discourse.gohugo.io/t/confessing-a-sin-github-https-not-rendering/37719/4 "2022-03-17T19:17:49Z")

</div>

> [@jmooring](#):
>
> [https://ramonmoorlag.nl/](https://ramonmoorlag.nl/)

thanks for the confirmation! And yes, it’s always better to get at the root of a problem then to compensate it somewhere else. Let me try a few things with Cloudflare (it’s amazing how fast their DNS update runs).

---

<div class="post-metadata">

**Author:** ![Ramon](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ramon/32/11980_2.png) [@Ramon](https://discourse.gohugo.io/u/Ramon)\
**Post date:** [March 17, 2022, 7:18pm UTC](https://discourse.gohugo.io/t/confessing-a-sin-github-https-not-rendering/37719/5 "2022-03-17T19:18:43Z")

</div>

thanks! I have read on a few places that only ‘/’ is enough for the baseURL.  
What is the guide line for that ?

I’ll try to solve the problem, I think it’s something to do with the rules at Cloudflare. Thanks!

---

<div class="post-metadata">

**Author:** ![Ramon](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ramon/32/11980_2.png) [@Ramon](https://discourse.gohugo.io/u/Ramon)\
**Post date:** [March 18, 2022, 7:20am UTC](https://discourse.gohugo.io/t/confessing-a-sin-github-https-not-rendering/37719/6 "2022-03-18T07:20:17Z")

</div>

With the help of Cloudflare support; set SSL to full,

 ![Screenshot 2022-03-18 at 08.15.08](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/5/3/53581e08953f1094d9a15133efd3415dc7627948.png)

then set Always Use HTTPS to on (tip it’s under SSL/TLS → Edge Certificates)

 ![Screenshot 2022-03-18 at 08.15.18](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/3/a/3abb37da991b12a11f9da1cba66649832a776807.png)

And now my GoHugo site is hosted at GitHub Pages and the DNS is managed by Cloudflare.  
Thanks [davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour) and [jmooring](https://discourse.gohugo.io/u/jmooring) for the quick help.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [July 9, 2022, 9:11pm UTC](https://discourse.gohugo.io/t/confessing-a-sin-github-https-not-rendering/37719/7 "2022-07-09T21:11:55Z")

</div>

Closed on July 9, 2022, 9:11pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
