apache

Get a list of all virtual hosts which are defined in all apache configuration files

Have you ever looked in the apache config files to see where a website’s virtual host is defined? The apache2ctl script has a useful option that could come in good here. When you execute the command, it should look like this: apache2ctl -S You’ll obtain a list of all virtual hosts and default servers in …

Get a list of all virtual hosts which are defined in all apache configuration files Read More »

Redirect a subdomain in Apache and keep the URL in the address bar

This tutorial shows you how to use redirect rules in the Apache web server. If you want to redirect a subdomain like sub.domain.tld into a subdirectory of the website and keep the original URL in the browser location bar, you may use the following apache directive. RewriteEngine on RewriteCond %{HTTP_HOST} ^sub.domain.tld [NC] RewriteRule ^/(.*)$ /sub/$1 …

Redirect a subdomain in Apache and keep the URL in the address bar Read More »

Redirect domains without www (e.g. domain.com) to www.domain.com with apache rewrite rules

If all your visitors shall access your website with a URL like www.domain.com and not without www, use the following apache rewrite rule for redirecting them. RewriteEngine On RewriteCond %{HTTP_HOST} !^www RewriteRule (.*) http://www.%{HTTP_HOST}$1 [L,R] The apache rewrite rule can be added in a .htaccess file in the website root directory or if you use …

Redirect domains without www (e.g. domain.com) to www.domain.com with apache rewrite rules Read More »

Installing Lighttpd with PHP (PHP-FPM mode) and MySQL or MariaDB on Ubuntu 15.04

Installing Lighttpd with PHP (PHP-FPM mode) and MySQL or MariaDB on Ubuntu 15.04 Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on an Ubuntu 15.04 server with PHP support (through PHP-FPM) and MySQL. PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation …

Installing Lighttpd with PHP (PHP-FPM mode) and MySQL or MariaDB on Ubuntu 15.04 Read More »

Protecting Apache Server From Denial-of-Service Attacks 1

Protecting Apache Server From Denial-of-Service Attacks

Protecting Apache Server From Denial-of-Service Attacks Denial-of-Service (DoS) attack is an attempt to make a machine or network resource unavailable to its intended users, such as to temporarily or indefinitely interrupt or suspend services of a host connected to the Internet. A distributed denial-of-service (DDoS) is where the attack source is more than one–and often …

Protecting Apache Server From Denial-of-Service Attacks Read More »

How To Install Laravel on Ubuntu 16.04 VPS

How To Install Laravel on Ubuntu 16.04 VPS

How To Install Laravel on Ubuntu 16.04 VPS With this tutorial, you will start from a clean Ubuntu 16.04 install, set it up to run Laravel, and end up with a demo Laravel application installed. Other articles in this series will show you how to set up the database and Laravel environment, and then how …

How To Install Laravel on Ubuntu 16.04 VPS Read More »

Apache Spark on MicroK8s and Ubuntu Core

How To Install CakePHP On Ubuntu 16.04 VPS

How To Install CakePHP On a Ubuntu 16.04 VPS With this tutorial, you will be able to create a CakePHP environment from scratch, define a database, and automatically generate a working web app. You will start with an empty black screen and within an hour have a small web site on a VPS. What are …

How To Install CakePHP On Ubuntu 16.04 VPS Read More »

How to Replace Apache with NGINX on Ubuntu 18.04 10

How to Replace Apache with NGINX on Ubuntu 18.04

NGINX is the modern web server founded by computer software engineer Igor Sysoev in the year 2004. NGINX is used by the most busiest and high traffic website. NGINX works out of box with the most major web stacks including LEMP (Linux, NGINX, MySQL, PHP) stack. This tutorial assumes that your website is hosted with …

How to Replace Apache with NGINX on Ubuntu 18.04 Read More »

How to Secure Apache with Let’s Encrypt Ubuntu 16.04 11

How to Secure Apache with Let’s Encrypt Ubuntu 16.04

  In this tutorial, we will examine how to secure Apache with Let’s Encrypt for the Ubuntu 16.04 operating system.   We will first examine an overview of Let’s Encrypt, certificate authorities, and then dive into a step by step guide to install & configure Let’s Encrypt on your Ubuntu 16.04 VPS servers and the review how …

How to Secure Apache with Let’s Encrypt Ubuntu 16.04 Read More »

Install and Secure phpMyAdmin on Ubuntu 16.04 VPS

With this tutorial, you will be able to install and secure phpMyAdmin, the most popular program for accessing MySQL and MariaDB databases on Internet servers. What We Are Going To Cover Installing the LAMP stack (Linux, Apache, MySQL, PHP) Adding PHP extensions to run phpMyAdmin How to install phpMyAdmin itself To secure phpMyAdmin, we are …

Install and Secure phpMyAdmin on Ubuntu 16.04 VPS Read More »