The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
3answers
469 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
33 views

apache expires not working for pyramid server

I have a pyramid server running on EC2 via apache with following configuration - <Directory path_to_virtual_env> WSGIProcessGroup pyramid Require all granted Order allow,deny ...
1
vote
1answer
102 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
415 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
202 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
279 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
63 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
34 views

Mod_Headers SetEnvIf Directive

I am trying to capture the specific RequestHeader but couldn't get hold of it. In my case SiteMinder is used for authentication and I am able to log the SM_USER value by providing the following entry ...
0
votes
0answers
147 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
222 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 ...