DeveloperBreeze

Web Server Development Tutorials, Guides & Insights

Unlock 4+ expert-curated web server tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your web server skills on DeveloperBreeze.

How to Install and Configure Apache on Ubuntu

Tutorial October 21, 2024
bash

You should see a message indicating that Apache is active and running.

If you have UFW (Uncomplicated Firewall) running, you will need to allow Apache traffic through the firewall. UFW has several predefined profiles that you can use to allow or deny traffic.

How to Create SSL for a Website on Ubuntu

Tutorial October 21, 2024
bash

Securing your website with SSL (Secure Socket Layer) certificates ensures encrypted communication between the server and the users. In this tutorial, you'll learn how to create and install SSL certificates on an Ubuntu-based server using Let's Encrypt and Certbot. Let's Encrypt provides free SSL certificates, and Certbot simplifies the process of obtaining and renewing them.

  • A server running Ubuntu (18.04, 20.04, or newer).
  • A domain name pointing to the server's public IP.
  • Root or sudo user privileges.
  • A web server such as Apache or Nginx installed.

Adding a Subdomain on an Apache Server

Tutorial August 21, 2024

The first step in setting up a subdomain is to create a DNS record that points to your server’s IP address. This tells the internet where to find your subdomain.

  • Name: Enter the subdomain name (e.g., blog for blog.example.com).
  • Type: Select A.
  • Value: Enter the IP address of your Apache server.
  • TTL: You can leave this as the default value.

Deploying a Flask Application on a VPS Using Gunicorn and Nginx

Tutorial August 03, 2024
python bash

Paste the following:

# HTTP to HTTPS redirection
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name developerbreeze.com www.developerbreeze.com;

    return 301 https://developerbreeze.com$request_uri;
}

# HTTPS Server Block
server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name developerbreeze.com www.developerbreeze.com;

    ssl_certificate /etc/letsencrypt/live/developerbreeze.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/developerbreeze.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

    root /path/to/your-flask-app;
    index index.html;

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    location / {
        include proxy_params;
        proxy_pass http://unix:/path/to/your-flask-app/developerbreeze.sock;
    }

    location /static {
        alias /path/to/your-flask-app/static;
    }

    location /favicon.ico {
        alias /path/to/your-flask-app/static/favicon.ico;
    }

    location ~ /.well-known {
        allow all;
    }
}