Collect all kinds of apache programming exceptions and fault solutions.


TLS Mutual Authentication in Apache - How to get the username of the authenticated user

I have configured TLS Mutual Authentication on my Apache server.
The server now accepts calls only if they specify a certificate that was signed by a CA that I have added in Apache.
Everything work...


How to remove expiration header from apache

I have been using the apache mod expiration module for setting an expiration HTTP header (https://httpd.apache.org/docs/2.4/mod/mod_expires.html). This module set an expiration header in all server


MAMP Apache Server no longer starts

I am using MAMP on Windows 10 with PHP 7.2.10 and the server has, until now, worked fine.
This morning I had to swap to PHP 5.6.28 for some legacy work, but on selecting Server > Start nothing


HTTPS causes browser to send way too much requests

Since a few days i'm dealing with a problem which causes my browser to send more reuqests than needed. I've noticed this because almost every time i submit a form, the submitted data gets inserted ...


Apache1 Mod_Perl 1.3 - What constant is missing in my docker instance?

I'm trying to build a (working in production) codebase to migrate it, and one of the websites keeps crashing with this annoying error:
| Syntax error on line 2 of /raid/0/www/apache/conf/srm....


Bogus value for Apache global Servername?

Setting up multiple sites on an Apache server with VirtualHost ServerNames and ServerAliases seems to be pretty straightforward. However Apache still has this notion of global ServerName, which it ...


Production vs Dev API call being redirected to front end

I understand this is very vague but hopefully I'll update this so that it's sufficient as folks ask questions.
We have a DEV and PROD apache server. Our simple get API call works in PROD. You call ...


Apache InheritDownBefore exclude specific directory from inheriting parents htaccess

I have put .htaccess with following content into my website's root directory:
RewriteEngine On
RewriteOptions InheritDownBefore
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{SERVER_NAME}%{REQUE...


No MetadataProvider available - shibsp::ConfigurationException

I recently upgraded Shibboleth from versionShibboleth-sp-2.5.6.0-win64 to Shibboleth-sp-2.6.0.0-win64 and Apache web server from 2.4.16 to 2.4.23.
Post the upgrade, when I try to access my applic...


OutOfMemory in Apache Lucene

I'm getting OutOfMemory error in Apache Lucene.
Here is the problem code:
DirectoryReader oldReader = directoryReader;
DirectoryReader newReader = DirectoryReader.openIfChanged(directoryReader);
...


OpenCart 3.0.2.0 - force SSL and fix "www" .htaccess

I am working on a fresh install that runs on OpenCart 3.0.2.0.
I bought a SSL certificate and my host activated it. I then proceeded to activate SSL from OpenCart's admin (System->Settings->Server...


Apache2 command such as a2enmod and a2ensite no working its showing command not found in Ubuntu

I am deploying Flask application in Apache2 server during this i need to run a command for enabling mod_wsgi by using:
sudo a2enmod wsgi
but its showing:
sudo: a2enmod: command not found
please...


apache poi: Error opening a merged word document containing an AlternateContent element

After merging two word documents using apache poi I get an error opening the resulting document. I copied some runs like "targetRun.getCTR().set(run.getCTR());" containing AlternateContent elements...


Split csv file by the value of a column - Apache Nifi

I have a csv files, that it has the following structure.
ERP,J,JACKSON,8388 SOUTH CALIFORNIA ST.,TUCSON,AZ,85708,267-3352,,ALLENTON,MI,48002,810,710-0470,369-98-6555,462-11-4610,1953-05-00,F,
MARK...


How to redirect visitors to country-specific URLs based on their geolocations?

My question is that how to serve webpage according to country. For example when we enter www.google.com in address bar of browser it opens www.google.co.in if you are from India instead of www.goog...


Apache error: Symbolic link not allowed or link target not accessible

I use Ubuntu as OS by default, but sometimes I need to use Windows 10 and would be convenient if I can have common access to all my web projects. I have two ssd for two OS. The first one only for U...


High CPU usage by Apache in XAMPP and Laragon

I'm running Windows 10 and I've been suffering from slowness in my XAMPP and now my Laragon. I tried virtually all the tips and tricks available online to speed them up, but none worked. It takes m...


http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" ... Putting this in .htaccess?

I downloaded html5 boilerplate and it wouldnt validate with this in the header.
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
I was told I can add this to .htaccess for th...


Buffering problem of output during updates of wordpress sites when using PHP-FPM/Apache combo (no problem when using mod_php)

I have a buffering problem of output during updates (core/plugins) of Wordpress sites when using PHP-FPM/Apache combo, basically I cannot see any messages on the dashboard while updating - it all a...


.htaccess rewrite rules for www.example.com and example.com -> this.example.com

I would like my site to direct all traffic from www.example.com and example.com or anythingelse.example.com to this.example.com This is what I have in my .htaccess file which is located in /www/exa...


Connect ColdFusion 11 to Remote Solr

I am having trouble "connecting" my stand-alone Solr server to my ColdFusion 11 Enterprise server. It seems that I have the basic Solr server information correct in the CFIDE Admin, but ColdFusion ...


not able to access apache from local machine, though it runs on the vagrant

I installed vagrant box in mac system. In that vagrant box I configured apache and it is running. I am trying to access it from my machine, but I am not able to access.
*Vagrant.configure(2) do |...