Category: Apache

Information And Howtos About The Apache Web Server

Apache is an open source web server that runs on a variety of platforms including various UNIX flavours, Novell Netware and Microsoft Windows. It is used to run more websites on the Internet than any other webserver and has done so since 1996, as reported by the Netcraft Webserver Survey. The Apache webserver can be downloaded in binary and source form from the Apache website.

RewriteRule redirect without the query string

When redirecting all requests from one domain name to another one when the URL structure has changed, you’ll ideally want to craft redirects from the old scheme to the new one. Sometimes this is too complex or messy, and it’s easiest to just redirect everything to the new domain’s homepage. If they have query strings at the end of the URL then Apache’s RedirectMatch and RewriteRule with automatically include the query string in the redirect location. This post shows how to solve this.

Read More »

Stop logging “internal dummy connection” in Apache

Apache 2.x keeps child processes alive by creating internal connections which appear in the log files as "internal dummy connection" on the IP address ::1 or 127.0.0.1. If you ever monitor Apache log files you’ll see a lot of these in the log files. This post shows how to prevent logging for these two IP addresses so your log files won’t get filled up with these.

Read More »

Allowing and denying access by IP address with Apache

Apache’s configuration allows access to be restricted by IP address in both the main configuration file, virtualhost directives and .htaccess files. It can be useful to deny access to specific IP addresses, for example to keep a bad robot out; and it can equally be useful to deny access to all IP addresses but allow a select few in, for example to restrict access for a specific area of a website (e.g. the admin) to a specific number of IP address. This post shows how to do both.

Read More »