Skip to main content
4 votes

.dev local development

This seems missing from the other answers, so I feel the need to emphasize it here... Craft does not require .dev for local development. Your local URL can be anything you want, Craft does not care. ...
Lindsey D's user avatar
  • 24k
3 votes

SSL certificate for Docker container in Nitro 2 has expired: what to do?

The easiest way to renew the certificates is nitro restart (specifically on the nitro-proxy container) which is detailed here. Nitro uses Caddy Server as a reverse proxy that runs in its own container ...
Jason McCallister's user avatar
3 votes

SSL certificate for Docker container in Nitro 2 has expired: what to do?

While self-update worked for you, that command is used for updating nitro itself. This may have the side-effect of updating your container, but if nitro is already up-to-date it may not do anything. ...
MoritzLost's user avatar
  • 11.5k
3 votes
Accepted

How to use SSL for local development with Nitro?

Checkout Nitro 2, it now has full SSL support https://craftcms.com/docs/nitro/2.x/commands.html#trust
Kevon's user avatar
  • 160
3 votes
Accepted

Craft 3 Admin not loading cpresources files over HTTPS

The fix was to delete the content of the /cpresources folder and that did the trick.
biko's user avatar
  • 670
3 votes
Accepted

Can't update or install plugins locally, macOS

error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version Your local OpenSSL setup is trying to connect with an older, insecure TLS 1.0 protocol, which Github (and a lot of ...
Brad Bell's user avatar
  • 67.5k
3 votes

.dev local development

Yea Google bought .dev a few years back and now chrome forces https on all .dev domains. I switched to using .test which has been reserved. So far, so good. https://medium.engineering/use-a-dev-...
sgtpenguin's user avatar
3 votes

Craft site moved to HTTPS - now having issues

So, removing the cache settings for CSS and JS in my nginx config fixed this. # CSS and Javascript location ~* \.(?:css|js)$ { expires 1M; access_log off; } Also, once I got into the admin area ...
Adam Menczykowski's user avatar
2 votes

Asset URLs not HTTPS

An addition on this, probably for later versions of Craft than @brandonkelly's answer. You also need to be careful where Asset definitions are made in the CP - specifically, under Settings>Assets>...
narration_sd's user avatar
  • 1,707
2 votes
Accepted

Optimizing With Http2 In Mind

So... just to be clear. This /style.css is a static asset, it's not sitting in the craft/templates folder, right? Assuming that's the case, something is definitely wrong if https is taking 2 seconds ...
andrew.welch's user avatar
  • 11.6k
2 votes

How do I force www in URL along with the Patrol plugin to force https

This is how our default .htaccess with https redirect and forced www. for all our projects looks like. So if you have the url example.com you'll get redirected to https://www.example.com. <...
Robin Schambach's user avatar
2 votes
Accepted

Loading assets cross-domain with SSL or non-SSL option

You could try something like '@assetBaseUrl' => $_SERVER['HTTPS'] ? 'https://site1.domain.org/files' : 'http://site1.domain.org/files' which checks for a secure request.
dmatthams's user avatar
  • 2,492
2 votes

Craft CMS 3 admin panel returns 404 with SSL

tl;dr: In my case, adding AllowOverride All back in to httpd.conf fixed the issue. I was having the same issue on my staging server. I noticed that, in addition to /admin throwing a 404, all of my ...
Andrea Hall's user avatar
1 vote
Accepted

Craft CMS SSL added to website correctly but says insecure for admin panel

For others with the same issue, I managed to get this resolved by adding baseCpUrl in the general.php file 'baseCpUrl' => 'https://www.domain.co.in' For more details visit https://craftcms.com/...
harshal jadhav's user avatar
1 vote

SSL certificate for Docker container in Nitro 2 has expired: what to do?

Someone may have a better answer but what just worked for me was: nitro self-update Followed by a Docker reboot. See the docs on updating.
Jonathan Schofield's user avatar
1 vote

Incorrect canonical URLs and redirect chains

Update to the latest SEOmatic; the issue you're describing is a case where SEOmatic operates the same as Craft CMS does in terms of returning a root URL without a trailing slash, but we added a fix to ...
andrew.welch's user avatar
  • 11.6k
1 vote

Force redirect from HTTP to HTTPS via htaccess with multisite installation

move these lines RewriteEngine On # Send would-be 404 requests to Craft RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-...
Flying Car 0013's user avatar
1 vote
Accepted

FeedMe SSL error - cURL error 35: SSL connect error

Most likely the PHP curl version that's on your box is trying to connect to the endpoint using an older SSL protocol (TLS 1.0, 1.1, etc.) and the endpoint requires something higher (TLS 1.2, 1.3, etc.)...
Brad Bell's user avatar
  • 67.5k
1 vote

How to use SSL for local development with Nitro?

SSL isn't currently available in Nitro–though it is on the roadmap for development. See github.com/craftcms/nitro/issues/10.
Joshua M's user avatar
  • 190
1 vote

Force SSL on sub folder

For better practice, you should never use ".htaccess" file. Especially your problem can be easily solved by modify Apache configure file. You should be able to find an Apache configure file somewhere ...
Parry Huang's user avatar
1 vote

SSL now CP unknown errors

After much head scratching it wasn't an SSL issue. Litespeed had recently been installed on the shared server but was misconfigured. It appears the allowed header size default value was modified ...
Dr_Codswallop's user avatar
1 vote

.dev local development

If you are using Laravel Valet, the newest version takes care of that. You may either change the domain with valet domain test, or better: automatically secure your project it with valet secure. It's ...
Fred Carlsen's user avatar
  • 2,997
1 vote

CloudFlare Shared SSL certificate forbids CraftCMS control panel sign in

I'd give Patrol plugin a try, just activate secure connections.
Leo Leoncio's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible