The Apache HTTP Server, colloquially called Apache, is the world's most used web server software. Apache played a key role in the initial growth of the World Wide Web as the dominant HTTP server, and has remained most popular since April 1996. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. Most commonly used on a Unix-like system (usually Linux).

Apache logo

Redirect all subdomains to main domain using .htaccess

13 Nov, 2022
Redirect all subdomains to main domain using .htaccess. Using some sort of a mass-hosting provider, you never know what they might change in your DNS automatically. This is a backup solution to make...
Apache logo

Enable HTTP/2 in Apache Web Server

28 Feb, 2019
HTTP/2 enables a more efficient use of network resources and a reduced perception of latency by introducing header field compression and allowing multiple concurrent exchanges on the same connection...
Apache logo

401 Unauthorized Error with https redirection

22 May, 2017
Got an unauthorized error from htaccess passwords after https redirection implementation. This was an unexpected result, but I guess what happens is that you are redirected to access denied page...
Apache logo

My perfect web server configuration on localhost

17 May, 2015
Apache default configuration can be a bit slow in case of today's standard web applications. Especially on local environment where you develop your application, class, framework or plain old PHP from...
Apache logo

Create htpasswd file from command line in Linux

17 Feb, 2015
Create or generate .htpasswd file from command line in Linux. The file is used for password protected websites in Apache. The easiest way to create one is to generate it from terminal.
Apache logo

Apache: *.localhost vhosts wildcard subdomains

5 Dec, 2014
This "tutorial" is how I created wildcard subdomains in my localhost. So I get domains like "http://bt.localhost". This bit is from my http.conf or apache.conf depending on your system. There also...
Apache logo

Install phpMyAdmin for Apache (on Arch Linux)

23 Sep, 2014
Install phpMyAdmin for Apache on Arch Linux so that it would open under "pma.localhost". This works on other distributions as well just use your specific package manager to download the packages and...
Apache logo

Compress web using gzip / mod_deflate

5 Aug, 2014
Compress site using mod_deflate to reduce bandwidth and loading time, also Google Speed suggests it. List of compressible mime-types to compress. You should not compress mime types that compress...
Apache logo

Install web server (Apache, PHP, MariaDB) on Arch Linux

23 Jun, 2014
This tutorial shows how to set up Apache, PHP and MariaDB (drop-in replacement for MySQL). You can use pacman instead of yaourt on installing the server, since yaourt doesn't come with Arch in...
Apache logo

Protect site with password using htaccess

28 Apr, 2014
Protect site with password using htaccess. The htpasswd file is just a text file that includes usernames and password hashes. You can generate those by using online tools for generating htaccess...
Apache logo

How to redirect everything to index.php

8 Oct, 2011
How to redirect everything to certain page like index.php or root.