The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
3answers
348 views

.htaccess “Header set” not working for text/html

I have a folder with this file: channel.html In the same folder I have this .htaccess file <Files channel.html> ExpiresActive On ExpiresDefault A31536000 Header set Cache-Control ...
1
vote
1answer
72 views

Apache2/mod_wsgi mod_headers issue

I'm running mod_wsgi on Ubuntu Server 12.04 with Django, but I can't seem to get mod_headers working. I've run a2enmod headers, and got the response that I need to restart apache for it to work, which ...
1
vote
1answer
358 views

mod_headers not working for php + mod_fastcgi pages

I'm running PHP through mod_fastcgi & mod_suexec, and I added Header set X-UA-Compatible "IE=edge env=best-standards-support" to my .htaccess file. It works fine for static content, but the PHP ...
0
votes
1answer
144 views

apache mod_headers custom header

Folks, Trying to add a custom header with mod_headers. Need to set the 'Date' Header for AWS S3 via mod_headers. I am trying to do the following in the apache config: RequestHeader add ...
2
votes
0answers
252 views

Add a header depending on the proxied response code with apache

I use Apache 2.2 with mod_proxy to some 3rd party HTTP server. As it doesn't send any Cache-Control header, I want to add one of 1 day for response code 200, 5 min for 404 and 0 for any other ...
1
vote
0answers
40 views

Apache: Add header to one specific url?

I just configured some Content negotiation for my root url based on this Apache Document and it seems to work great. As my site also set a language cookie, I tested the following in my virtualhost ...
0
votes
0answers
309 views

How to add a custom header despite a RewriteRule redirecting to 304?

I have an apache2 server set up to return 304 responses when appropriate. I implemented it with a rewrite rule, like so: <VirtualHost *:9290> (...) Header set Last-Modified "Tue, 01 Jan ...
0
votes
0answers
13 views

Cgi 2.4 does not display headers

With Cgi 2.4, I am facing a problem of displaying headers which does not respect the standart norme. If I put a header with this format: X-xxxx is accepeted but X_xxx does not. any solution? thanks
0
votes
0answers
42 views

Clone/duplicate cookie with different path

I would like using mod_headers module in Apache to clone/duplicate cookie with name 'lang' with different path. More precisely I've got cookie "lang" assigned to "/man/" and I would like to clone ...
0
votes
0answers
138 views

mod_header copy

I wanted to see if anyone can help me in using mod_headers module in apache2 My problem is that I have a header with the name MY_HEADER = MY_VALUE which I need to add rename and add as a new ...
0
votes
0answers
204 views

Force download not working on particular file server

I have a few servers for storing files and I have this in my .htaccess to force download of mp3 files (instead of the browser streaming it). However, on one file server this does not work. Mod_headers ...