Automatically generate Apache header setting code