The 403 forbidden error message appears when trying to access a file you are not authorized for

Deny Direct File Download With .htaccess

Just because you host something online does not necessarily mean that you want everyone to have access to it. For example, if you are developing or hosting an online project which contains private information sitting on your filesystem available only for authorized access only. In this tutorial, you will see how to deny direct download to a file by using an .htaccess configuration file on an Apache web server in Linux.

Read more

APACHE web server and SSL authentication

APACHE web server and SSL authentication

This tutorial describes configuration techniques of module the Apache SSL module, which extends the functionality of Apache web server to support SSL protocol. The tutorial will deal with authentication of server (One-way SSL authentication), as well as it will also include authentication of clients by using certificates (Two-way SSL authentication).

Read more

Restarting NGINX web server on Linux

How to restart NGINX on Linux

NGINX is popular web hosting and reverse proxy software for Linux systems. Like many other applications and services, it occasionally needs restarted. Restarting is especially common when making updates to configuration files. You’ll always need to restart or reload NGINX for the changes to take effect.

In this article, we’ll go over a couple different command line options for restarting and reloading an NGINX server. In addition, you’ll learn how to check the NGINX configuration file for mistakes before restarting NGINX. After all, you wouldn’t want to load up a configuration that contains errors.

In this tutorial you will learn:

  • How to reload NGINX (no effect on client connections)
  • How to completely restart NGINX

Read more

LAMP server setup on Ubuntu 22.04 Jammy Jellyfish

Ubuntu 22.04 LAMP installation

A LAMP stack is an assortment of software that contains everything you need in order to serve a website, show dynamic content, and store or retrieve data from a database. The software is all within the LAMP acronym, namely the Linux operating system, Apache web server, MySQL database (or MariaDB alternatively), and PHP programming language.

Read more

How to open http port 80 in Redhat Linux using firewall-cmd

How to open http port 80 in Redhat Linux using firewall-cmd

This article will provide you with an information on how to open port in Redhat Linux, and more specifically we will be talking about the HTTP port 80.  firewalld is the default firewall program that comes pre-installed on Red Hat Enterprise Linux 7 and 8. By default, the firewall is turned on, meaning that a very limited number of services are able to receive incoming traffic.

Read more