Troubleshooting the Apache Web Server
Apache won't start after adding mod_proxy and LB type by_busyness
Problem
After configuring mod_proxy
according to the ProxyPass documentation, and specifying a load balancing method of by_busyness
Apache, fails to start.
Attempting to start Apache from the command line shows the following:
{{AH00526: Syntax error on line 528 of C:/Apache24/conf/httpd.conf:
BalancerMember Can't find 'byrequests' lb method}}
Cause
The default load balancing algorithm of byrequests
is required at a minimum to make mod_proxy load successfully.
Resolution
Uncomment the following line in C:\Apache24\conf\httpd.conf
, and restart the Apache 2.4 service:
#LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
htcacheclean scheduled task fails to start
Problem
After configuring the htcacheclean
scheduled task, it fails to start, and the following error appears:
Cause
The service account running htcacheclean
must be granted the privilege Log On as a Batch Job
Resolution
Grant the privilege Log On as a Batch Job to the service account that is responsible for running htcacheclean
.
The Log On as a Batch Job option may be a domain-controlled privilege. If so, you will not be able to add it from the local machine. In this case, work with your Active Directory administrator to provision this to the machine that runs Apache.
No cache files created after mod_cache is configured
Problem
After configuring mod_cache
, no files are created in the folder C:\mod_cache\cacheroot
.
Cause
The Apache configuration parameters FileETag and CacheIgnoreURLSessionIdentifiers have not been set up correctly.
Resolution
Modify the file C:\Apache24\conf\http.conf
and ensure the following settings are in place:
The "URL Session Identifiers" are case-sensitive. As a best practice, type them both in uppercase and lowercase as in the image above.