• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

https

Git Switch from HTTPS to SSH

January 20, 2022

If you have trouble cloning a github repo using https, you can tell it to switch to SSH instead.

Here’s the command.

git config --global url.ssh://git@github.com/.insteadOf https://github.com/

git config --global url.ssh://git@github.com/.insteadOf https://github.com/

I had to specify reconfigure when I ran terraform init.

terraform init --reconfigure

terraform init --reconfigure

Filed Under: Cloud, Linux Tagged With: clone, git, https, ssh, switch

HTTPS in CodeIgniter

July 17, 2019

If you switched to HTTPS in Apache, make sure to update CodeIgniter’s config file.

vim /var/www/applications/config/config.php

vim /var/www/applications/config/config.php

Change the base URL to https.

$config['base_url']	= 'https://yourdomain.com/ci/';

$config['base_url'] = 'https://yourdomain.com/ci/';

Filed Under: PHP Tagged With: apache, base url, codeigniter, config, https, php

Free SSL Certificates

May 22, 2018

I picked up a free SSL certificate from SSLForFree.com. It’s good for 90 days. Not a bad deal. Wished it was longer. Without further ado, the site is now running on https! Check out the secure lock next to my domain! I’ve added a redirect to force visitors to use https instead. It’s a good exercise on how to convert any site from http to https. I learned how to configure Apache and how to use certificates. Anyways, plan to do them for my other websites.

Filed Under: Misc Tagged With: certificate, https, ssl

  • Home
  • About
  • Archives

Copyright © 2023