Apache Server Find Virtual Host Config Location

The virtual host configuration is a part of the Apache web server’s (HTTPD) main configuration file only. You either write the <VirtualHost> directive blocks right into the main server config file or you put it in a separate file and load that inside the main config using Include or IncludeOptional. The latter is much more […]

Apache HTTPD Server Configuration Templates with mod_macro

Have you ever wanted to have functions or templates that’d really help with not repeating similar configuration blocks with super minor differences in your Apache Web Server config files ? The best use case is when your machine (single IP Address) is serving multiple domains. For this you must have multiple virtual hosts sections (VirtualHost) […]

How To Enable or Disable Modules in Apache Web Server

The Apache HTTP Server’s (HTTPD) feature set can be extended by a ton of modules. Modules can be either static or shared/dynamic. Static modules are “in effect” or enabled by default but the shared ones have to be explicitly enabled. Enabling and disabling modules has to be done via configurations. We just need to know […]

Apache Web Server Generate Unique ID for Every Request

A unique identifier for each request is super useful when you want to trace requests of your web application for debugging. For instance if you have a logging system, you can search through a particular request ID to debug logs representing everything that happened throughout the lifetime of a request. mod_unique_id The Apache HTTP Server […]