Apache uses the DirectoryIndex directive to set a default index page for your website. Usually, valid index pages include index.html and index.php. Apache automatically serves…
Category: Apache
Knowledgebase articles about the Apache web server.
Deny access to user agents using .htaccess
A common nuisance for website owners are useless bots and crawlers. In particular so-called SEO bots can be a pain. They have a habit of…
Deny access to URLs using .htaccess
The mod_rewrite module lets you manipulate URLs. Among others, you can use this to deny access to a page.
Deny access to files using .htaccess
This article looks at Apache’s Files and FilesMatch directives. Both are used to allow or deny access to files on your website.
Deny access to IP addresses using .htaccess
Apache has two directives that can be used to block (or allow) an IP address. Traditionally, Apache used the Allow, Deny and Order directives, which…
.htaccess files
The Apache web server uses various configuration files. It always has a primary configuration file (typically httpd.conf) and often a config file with options specific…
Parsing Apache access logs
Extracting specific data from Apache access logs is tricky. The files don’t use a single delimiter, so you can’t simply, say, open an access log…
Understanding Apache access logs
Apache access logs contain a lot of information about requests made to websites. This article looks at the information you find in the logs. In…
Getting access logs for a domain
Many people use web analytics services such as Google Analytics to get information about traffic to their website. Another popular option is Awstats, which is…
Apache MPMs (Multi-Processing Modules)
The Apache web server can use different Multi-Processing Modules (MPMs). An MPM performs various important tasks, including dealing with requests and creating child processes or…