The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
2answers
388 views

IIS sets http header Expires to -1, how do I override this with mod_expires

I'm using an IIS website with a Apache HTTP reverse proxy (mod_proxy with ProxyRequests Off). I want to control the expires headers in apache (don't ask), but IIS is setting the header Expires: -1. ...
0
votes
2answers
268 views

Having trouble removing HTTP header “Cache-control”

I'm trying to get my assets cached using Cloudflare Cloudflare states here that "CloudFlare will not cache your site or static content if you have no-cache and private headers coming from your ...
2
votes
1answer
130 views

php file downloads instead of being processed with ajax on apache

I have a small website where some content is displayed within a HTML tag using AJAX. The content is simply taken from another page on the same web site. However, sometimes instead of loading the ...
2
votes
1answer
692 views

How to remove “Client-Peer” (etc) header in nginx with php-fastcgi

My setup: OS: Ubuntu 11.04 HTTP Server: nginx 1.2.1 compiled with the HttpHeadersMore module processing PHP via php-fastcgi (other irrelevant software - ruby, python, etc) My problem: I'm ...
1
vote
1answer
113 views

postfix header_checks - regex spanning multiple lines

I would like to create a spam filter that spans multiple lines in headers. This is my /etc/postfix/header_checks file: /^From:.*name[0-9]+@.+[\r\n]+To:.*name@domain\.com/ REJECT It's a valid ...
1
vote
1answer
278 views

haproxy header rewrite to lower case

I have a custom app behind an haproxy server. Can haproxy rewrite the case of the header? For example changing http://www.company.com/ABC to http://www.company.com/abc If so, how?
0
votes
1answer
90 views

multiple post requests using wget and same base-url

wget has nice option that lets you allow downloading multiple files from same location (I mean combination of --base and --input-file) Advantage of this, is that if possible wget tries to reuse ...
0
votes
1answer
502 views

DNS bind & mail server - received by unknown

I have a web server that talks to a mail server when sending an email. Now I'm hosting my own DNS, however, since then I see that one of the email headers says: Received: from webserver.domain.com ...
0
votes
1answer
152 views

re-direct SSL pages using header statement based on port

I found this in the header.php file of a e-commerce site. Is this better done in a .htaccess file. Also what would happen to any post parameters that get caught in the header statement. // flip ...
1
vote
0answers
15 views

How can I dump email headers to plaintext files?

I have a .pst for which I would like to extract header information for all emails and dump it to one file per email. How would I go about doing this?
1
vote
0answers
123 views

How to override “Content-Type” header with PHP script on Nginx

I have some php script which returns jpeg image(1x1 pixel) with content type "image/jpeg": // return image $image_name = 'img/pixel.jpg'; $image = fopen($image_name, 'rb'); header('Content-Length: ' ...
1
vote
0answers
374 views

Proper resolution of request url and referer

I was working on my node server and encountered the need to implement the use of request.headers.referer. When I did tests and read headers to determine how to write the parsing functions, I couldn't ...
0
votes
0answers
51 views

IIS cache headers for selective file types

I have an application that serves .js, .css and .gif, and bunch others (.xls, .htm,.pdf....etc) file types. My requirement is to allow browser caching of .js, .css and .gif files but not allow any ...
-1
votes
0answers
20 views

SMTP relay is showing host address in postfix message-id

We want to use a SMTP relay and completely remove the main servers details from the email headers. I have modified /etc/postfix/master.cf cleanup unix n - n - 0 ...