Allow Using .htaccess in Apache2

Allow Using .htaccess in Apache2

Tiempo de lectura: < 1 minuto Reading time: < 1 minute In order to use .htaccess on our Apache server, we need to enable the option in the Apache configuration file. To do this, we open the file: sudo vi /etc/apache2/apache2.conf Once it’s open, we need to go to the line that says AllowOverride None and change it to: AllowOverride All ... Read more

Hide directory tree (index) in Apache2

Hide directory tree (index) in Apache2

Tiempo de lectura: < 1 minuto Reading Time: < 1 minute Yes, we have folders to organize our code in the www directory and we don’t want them to appear when accessed through the browser. All you need to do is create a .htaccess file and add the following line: Options -Indexes If the change is not applied, you need to … Read more

Associate a Docker file to have a custom image (Apache + PHP + Python) inside Docker Compose

Associate a Docker file to have a custom image (Apache + PHP + Python) inside Docker Compose

Tiempo de lectura: 3 minutos Reading time: 3 minutes Continuing with the post Deploy Apache Web Server with PHP using Docker Compose, we are going to learn how to associate a Dockerfile with a container defined in Docker Compose. A Dockerfile allows us to have a customized image by including commands within a Docker image. This allows us, for example, … Read more

Install SSL certificates for HTTPS using domain or subdomain with Let’s Encrypt on your own server or VPS

Install SSL certificates for HTTPS using domain or subdomain with Let’s Encrypt on your own server or VPS

Tiempo de lectura: 2 minutos Reading time: 2 minutes Many times we want to install a certificate to ensure that the connection to our website is secure. This tutorial can be used to obtain certificates for a domain and a subdomain. It can be used with Apache, Node.js, Fast-API, or Python’s Django, Spring Boot, or any other type of server … Read more