The tag has no wiki summary.

learn more… | top users | synonyms

24
votes
5answers
25k views

Setting expires headers for static content served from nginx

I'm using nginx to server my static content, is there a way that I can set the expires headers for every file that meets a specific rule? For example can I set the expires header for all files that ...
15
votes
4answers
12k views

How to dump entire HTTP requests with apache

Is it possible to dump entire HTTP requests by apache? I need to track all HTTP headers of incomming requests. How to do that?
9
votes
2answers
13k views

How can I make nginx support @font-face formats and allow access-control-allow-origin?

I've added these rules to mime.types: application/x-font-ttf ttf; font/opentype otf; application/vnd.ms-fontobject eot; font/x-woff ...
7
votes
4answers
979 views

“Delivered-To” Header in Exchange

In some SMTP server implementations (i.e. Postfix) you can enable Delivered-To and X-Original-To headers that will be added to your email. (or [X-]Envelope-To) This is very helpful with distribution ...
5
votes
2answers
212 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. ...
4
votes
2answers
208 views

What is the best way to move site to new domain without losing google page rank

Hello I just bought new domain for my web page. Is it good to use php redirection to the new domain and what are the exact headers that I must send to google bot to just renew the address and keep the ...
3
votes
4answers
5k views

RequestHeader with Apache environment variable

I have Apache set up as a load balancer. I wanted to make apache set the X-Forwarded-Proto header, but this doesn't work: RequestHeader set X-Forwarded-Proto "%{SERVER_PROTOCOL}e" The header gets ...
3
votes
1answer
4k views

Apache - disable range requests - disadvantages?

As there is a working exploit against Apache's byte range implementation (CVE-2011-3192, see here), I'd like to disable it until official patches are shipped with my distros (Debian, Ubuntu). The ...
3
votes
1answer
34 views

Is there a legitimate reason to use an encoded word in any header other than the subject?

Encoded words allow non-US-ASCII characters to be encoded as US-ASCII and thus placed into email headers. http://en.wikipedia.org/wiki/MIME#Encoded-Word Encoded words are often used in the Subject ...
3
votes
2answers
3k views

Apache redirect and set cache headers?

Doing a redirect in Apache is easy (mod_alias): RedirectMatch ^.*$ http://portal.example.com/ Setting cache headers is equally easy: Header set Cache-Control max-age=0 Header set Expires "Thu, 01 ...
3
votes
1answer
1k views

Is this a proper Content-Type header?

I have a pretty good understanding of the Content-Type header for most cases. I understand that for the following four examples, you would normally follow the MIME-type with charset=your-charset-here. ...
2
votes
3answers
214 views

SPARC T4, Solaris 11, no access to internet, how to install system headers (or a working compiler)

I need to compile a C program on SPARC T4-1 (Solaris 11) machine that has been deployed to customer network, and it no longer has access to the Internet. Originally during the setup, compilation ...
2
votes
2answers
1k views

Sending machine hostname as a header in Apache

I have a group of linux apache 1.3 servers behind a load balancer, and I want to be able to, at a glance, determine which server I'm hitting. The load balancer is severely limited in its monitoring ...
2
votes
2answers
93 views

Minimal size of TCP communication

I am sending small amounts of data (up to 100 bytes) every 10 minutes from devices to TCP server. In my case overhead seems to be huge (we pay for each byte). I found that I have at least 7-10 packets ...
2
votes
2answers
222 views

Isn't it a bug to receive mail already containing a Delivered-To: <myaddress> header?

I'm managing a bunch of mail servers, the MX are postfix+amavisd-new systems while the mailboxes are on a qmail+vpopmail box. Yeah, we already plan to move everything to postfix but that's another ...
2
votes
2answers
294 views

Requesting better explanation for expires headers

I have successfully implemented expires headers however, for several days I have been stumped by one thing. This article: ...
2
votes
1answer
581 views

2 Received from header at IIS SMTP email send via C# application

I am using windows server 2008 r2 and IIS 7.5 normally. I am using IIS 6 smpt server to send emails. Right now when i send email via my C# application i am seeing 2 received from headers. What might ...
2
votes
1answer
718 views

Hide/Replace Nginx Location Header?

I am trying to pass a PCI compliance test, and I'm getting a single "high risk vulnerability". The problem is described as: Information on the machine which a web server is located is sometimes ...
2
votes
2answers
638 views

Apache2 merge multiple Set-Cookie headers

We have a server running varnish. In order that it works correctly with Magento it analyses whether a Set-Cookie: EXTERNAL_NO_CACHE=1 header is passed through. Only problem is that we have several ...
2
votes
2answers
335 views

postfix - different header checks for incoming and outgoing mail

How can I apply different header_checks for incoming and outoing mail using postfix? By default, all header_checks are applied to both incoming and outgoing.
2
votes
2answers
715 views

nginx: Specify custom headers in rewritten location blocks

I'm trying to set some headers only for specific location blocks in nginx. The problem I have is that those location blocks contain rewrite statements, which apparently seem to drop the custom ...
2
votes
2answers
126 views

last modification date of web page unknown

I would like to check the age of the document in the webpage but it does not show! here is the result of a telnet to the server: telnet av.hostoi.com 80 Connected to av.hostoi.com. HEAD / HTTP/1.0 ...
2
votes
5answers
3k views

Rewriting from headers in Postfix

I want to configure Postfix to replace the 'From' header in all forwarded/aliased messages with a custom email address, and the 'Reply-To' header with the original sender's address. Is that something ...
2
votes
2answers
1k views

What does the email header “X-CAA-SPAM” refer to?

I've got an application that sends out notification emails to users of the application (this is not spam; the information in these emails is solicited and useful, and is also a feature turned off by ...
2
votes
1answer
1k views

Disable User-Agent based Vary header response in nginx?

It seems that nginx includes a Vary: Accept-Encoding header in some cases regardless of the file types I specify via "gzip_types". I do not have much experience with nginx. Does it in fact send Vary: ...
2
votes
1answer
33 views

postfix HOLD Recieved non authenticated

i'm wondering if is possibile to put on hold emails that not have authenticated in Recieved header . i've tryed with a simple negate operazione with pcre !/^Received:.*Authenticated*/ HOLD but ...
2
votes
0answers
264 views

What is the difference between content-language and accept-language headers in Outlook? How/when are these added?

Outlook 2010 | Windows 7 Can someone please elaborate on the difference between the content-language and accept-language email headers? When do these get added by Outlook 2010 and where can I ...
2
votes
1answer
120 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
335 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 ...
2
votes
1answer
990 views

Build kernel headers to compile R1Soft hcp module

I'm running a Xen based VM with CentOS 5, and my hosting provider pushes kernel version 2.6.37.6 from the host machine (so no pv-grub). [root@dev ~]# uname -r 2.6.37.6 I'm trying to install the ...
1
vote
2answers
655 views

What does this Received email header line mean?

I'm a little paranoid that my new mail server might not be configured right, and I'm wondering if I made a mistake somewhere. Or maybe it's just the way Yahoo does things with their mail service. To ...
1
vote
1answer
210 views

Sending e-mail from sendmail with headers

I am trying to send an e-mail with sendmail, but I need to specify some headers (From, Content-Type, Subject). Here is the command I am currently running: echo "Content-Type: text/plain\r\nFrom: ...
1
vote
1answer
634 views

Content-length does not appear with nginx and php files

I have a nginx server which serve a website. With my browser i can reach index.php, but when i look at the headers with firebug, i can't see the content-length on any php files, but for example i can ...
1
vote
1answer
532 views

NGINX Pass-through server header

How do I get NGINX to pass through the 'server' header of upstream servers? Like, if NGINX is proxying to an Apache server with the Server header 'Apache2.2 (CentOS)', it strips it out and replaces ...
1
vote
1answer
4k views

Remove X-Forwarded-For header in Squid 3.0

Some months ago I was working with Squid 3.0 and managed to get rid of the X-Forwarded-For header completely. Now I am trying to do the same thing but I do not seem to hit the nail. I have tried ...
1
vote
2answers
2k views

IIS cache control header settings

I'm currently working on a website that is accessed over https. We have recently come across a problem where we are unable to view .pdf files or any other type of file that is sent as an attachment ...
1
vote
2answers
154 views

would this header cause the email to be flagged as suspect?

Authentication-Results: [snip].mail.[snip].[snip].com from=someDomain.com; domainkeys=neutral (no sig); from=someDomain.com; dkim=neutral (no sig) Received: from 127.0.0.1 (EHLO ...
1
vote
1answer
1k views

Should I use Expires headers, Cache-Control headers, or both?

Just trying to do a bit of performance tuning on a client's site. I don't want to set far future expiries yet, because we are still changing a lot of stuff regularly, but I'd like to give everything ...
1
vote
1answer
69 views

Spam avoidance issue

I'm working on a project right now that sends email as confirmation of purchase. Some emails are still being received as spam. I have signed the domain up for google apps for business & am using ...
1
vote
4answers
1k views

Referer is passed from HTTPS to HTTP in some cases… How?

In theory browsers do not pass on referer information from HTTPS to HTTP sites. And in my experience this has always been true. But I just found an exception, and I want to understand why it works so ...
1
vote
1answer
111 views

postfix additional header addition

X-LBSMTP-Spam-Policy: SendBlaster SMTP is a paid relay service.We do not tolerate UCE of any kind. Please report it ASAP to abuse@lbsmtp.org. I want to add such a header to mails sent by my postfix ...
1
vote
1answer
572 views

ngrep - possible to hide payloads?

I use ngrep a lot to inspect HTTP headers to see what's going on. I use the -q flag for quiet output, but I really don't want to see the payloads, only the headers. Is there a way to do this? My ...
1
vote
1answer
533 views

Adding mail header if postfix DNS based RBL (realtime black hole) check fails

I have setup a receiving Postfix mail server. Here i have custom code written that parses the whole mail received by postfix and use the headers, body and attachments separately for different uses. I ...
1
vote
1answer
232 views

Postfix: Get real forwarded-to address

Our system is set up such that *@our-server.com goes to reader@our-server.com. We automatically process email and it's easier/faster to connect to a single account that has all email rather than the ...
1
vote
1answer
117 views

Doctype xml version definition

W3C DTD instructions include the following as the very first line of a (X)HTML document: <?xml version="1.0" encoding="utf-8"?> I acknowledge the importance of the DOCTYPE declarations that ...
1
vote
4answers
3k views

Is there a way to add expires header to images with Godaddy shared Linux hosting?

I can't find a way to do it. Is it even possible?
1
vote
2answers
1k views

All headers pass, hotmail still marks as spam [duplicate]

Possible Duplicate: Why Does hotmail still reject my emails? So I've been working a long time on fixing the Hotmail issue, but nothing seems to work: Created my SPF records with the ...
1
vote
0answers
166 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 ...
1
vote
1answer
193 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?
1
vote
1answer
499 views

set expires header varnish, like apache directive

Does anyone know a way to add expires header to a response in Varnish, like Apache does? Using Apache directives you can set expire headers and set how much time from now they will expire i.e. 1 month ...