DeveloperBreeze

$currentUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
echo $currentUrl;

Continue Reading

Discover more amazing content handpicked just for you

Tutorial
bash

How to Install and Configure Apache on Ubuntu

If you want Apache to serve content from a different directory, you can change the DocumentRoot directive:

DocumentRoot /var/www/html

Oct 21, 2024
Read More
Tutorial
bash

How to Create SSL for a Website on Ubuntu

Certbot is the client tool that will manage SSL certificate generation for Let's Encrypt. Depending on your web server (Apache or Nginx), install Certbot and the appropriate plugin.

sudo apt install certbot python3-certbot-apache

Oct 21, 2024
Read More
Article
bash

Top 25 Nginx Web Server Best Security Practices

log_format suspicious '$remote_addr - $remote_user [$time_local] "$request" ';
error_log /var/log/nginx/error.log;

Regularly monitor Nginx logs for potential attacks or unusual traffic patterns. Tools like GoAccess or ELK Stack can help visualize and analyze logs in real-time.

Sep 24, 2024
Read More
Tutorial
json bash

Building Progressive Web Apps (PWAs) with Modern APIs

To follow along with this tutorial, you should have a basic understanding of HTML, CSS, and JavaScript. Familiarity with modern JavaScript (ES6+) is also helpful.

Progressive Web Apps are characterized by the following features:

Aug 05, 2024
Read More
Tutorial
python bash

Deploying a Flask Application on a VPS Using Gunicorn and Nginx

[Unit]
Description=Gunicorn instance to serve Flask application
After=network.target

[Service]
User=www-data
Group=www-data
WorkingDirectory=/path/to/your-flask-app
Environment="PATH=/path/to/your-flask-app/venv/bin"
ExecStart=/path/to/your-flask-app/venv/bin/gunicorn --workers 3 --bind unix:/path/to/your-flask-app/developerbreeze.sock app:app

[Install]
WantedBy=multi-user.target

> Replace /path/to/your-flask-app with your actual project path.

Aug 03, 2024
Read More
Code
php

Basic Authentication

No preview available for this content.

Jan 26, 2024
Read More

Discussion 0

Please sign in to join the discussion.

No comments yet. Start the discussion!