Top "Mod-headers" questions

An Apache module which provides directives to control and modify HTTP request and response headers.

Add Secure and httpOnly Flags to Every Set-Cookie Response in Apache httpd

I'm running Apache 2.2.26: Server version: Apache/2.2.26 (Unix) Server built: Jan 17 2014 12:24:49 Cpanel::Easy::Apache v3.22.30 rev9999 +cloudlinux I'm attempting to use …

.htaccess security cookies httponly mod-headers
How to check mod_headers and mod_expires modules enabled in apache

I want to check whether mod_headers and mod_expires modules enabled or not in my server Is there a …

apache apache-config mod-expires phpinfo mod-headers
How to set HSTS header from .htaccess only on HTTPS

My web application runs on a different number of hosts that I control. To prevent the need to change the …

apache .htaccess mod-headers
how to use mod_headers and mod_expires to cache

I want to cache images and other files on my site, so what I did is made sure mod_headers …

apache .htaccess caching mod-expires mod-headers
Set multiple cookies in Apache

I'm trying to set two cookies in Apache (2.2), using mod_header, like so: Header set Set-Cookie "poodle=noodle;path=/;Secure;…

apache cookies mod-headers
How to conditionally modify Apache response header 'Location'

I need to be able to test the URL string in a Location response header for a certain pattern and …

apache header response mod-headers
mod_headers not working

I enable mod_headers and mod_rewrite in my http.config removing the # from line. LoadModule headers_module modules/mod_…

apache mod-headers
Mod_deflate and mod_header settings?

I've finally gotten a VPS hosting account set up this allows me to use mod_deflate and mod_header (of …

.htaccess optimization yslow mod-deflate mod-headers
Is it possible to set headers conditionally?

I would like .htaccess to perform the following code ONLY if http_referer is from google (.com/ .ru/ .co.uk /.…

apache .htaccess cache-control mod-headers
Set Apache headers conditionally

I'm working with an apache server, and I'd like to add headers conditionally. If the URI matches a certain regex, …

apache http-headers cors mod-headers