DevOps

AWS Naming Convention

When naming AWS resources, including instances, volumes, snapshots, and other resources, it’s important to follow a consistent naming convention that helps with organization, identification, and management. Here are some general guidelines for creating AWS resource names: Be descriptive: Use names that clearly indicate the purpose, function, or characteristics of the resource. This helps in understanding […]

AWS Naming Convention Read More »

Deploy Laravel 11 project on Shared Hosting, the Easiest Way

Are you hosting a Laravel 11  project on your server but struggling to access it directly from your domain? Fear not, as configuring Apache redirect rules can seamlessly direct traffic to your Laravel project folder.  after archiving and uploading your Laravel project to your cPanel  Follow these steps to set up the redirect rules via

Deploy Laravel 11 project on Shared Hosting, the Easiest Way Read More »

Cloudflare pages, multiple “projects” with a single GitHub repo

I have in a single repository, several projects in subdirectories, each corresponding to a different site, this option would be important for me not to need to create several different repositories, each containing a single site. It can be done, although it’s not at all documented. Two steps: add the domain you want to use

Cloudflare pages, multiple “projects” with a single GitHub repo Read More »

How to Disable Direct IP Access in Nginx (HTTP & HTTPS)

Find out how to use Nginx to disable direct IP access to your websites. In particular, I’ll cover these three solutions that will turn away users, malicious or not, when they try to access your server via IP:- ssl_reject_handshake approach for Nginx 1.19.4 and newer (recommended solution) Self-signed SSL certificate approach for Nginx older than

How to Disable Direct IP Access in Nginx (HTTP & HTTPS) Read More »

from scratch and explain the process of configuring Apache to allow or deny the use of .htaccess files in detail.

  Let’s start from scratch and explain the process of configuring Apache to allow or deny the use of `.htaccess` files in detail. **What is `.htaccess`?** `.htaccess` is a configuration file used by the Apache web server. It allows you to configure various aspects of how your web server behaves for specific directories and files.

from scratch and explain the process of configuring Apache to allow or deny the use of .htaccess files in detail. Read More »

Persist the SSH agent and the added key across terminal sessions by using the `ssh-agent` service.

If you want to persist the SSH agent and the added key across terminal sessions by using the `ssh-agent` service.   1. Open a terminal.   2. Run the following command to start the `ssh-agent` service:    eval “$(ssh-agent -s)”     3. Add your SSH key to the agent by running:    ssh-add ~/.ssh/id_ed25519

Persist the SSH agent and the added key across terminal sessions by using the `ssh-agent` service. Read More »

Setting Up SSH Connection between Ubuntu 22 and GitHub: A Step-by-Step Guide

To make an SSH connection between Ubuntu 22 and GitHub, you can follow these steps: 1. Generate an SSH key pair: run the following command to generate an SSH key pair:   ssh-keygen -t ed25519 -C “[email protected]”   Replace `”[email protected]”` with your actual email address. You can also choose a different key type (e.g., RSA)

Setting Up SSH Connection between Ubuntu 22 and GitHub: A Step-by-Step Guide Read More »