Tag Info

Hot answers tagged

9

The documentation states that add_header "Adds the specified field to a response header provided that the response code equals 200, 204, 206, 301, 302, 303, 304, or 307. A value can contain variables." So it doesn't work with a 502. I forgot to add that you can use the third party headers more module to add headers to other codes. You'll probably have to ...


7

When you enter a URL without a port, port 80 is implied. No browser that I know of has any way to change this behavior; if you want to use port 3333, then you'll need it in the URL.


6

The FOOBAR in %{FOOBAR}e should be an environment variable, but HTTP_HOST is a server variable. If you really want to do that, you may try: RewriteRule (.*) $1 [E=custom_host:%{HTTP_HOST}] RequestHeader set X-Custom-Host-Header "%{custom_host}e" or RewriteCond %{HTTP_HOST} (.*) RewriteRule (.*) $1 [E=custom_host:%1] RequestHeader set ...


6

Yes you can very well hash any header of your choice. Just use "balance hdr(header_name)". I must say I had never thought about doing it that way. In some environments, it can indeed be quite useful. You can also hash on a URL parameter or a POST parameter if that can help. You can't define your hashing method however. You can select if the hash is ...


5

SPF shouldn't be causing a header to be added. Something else should be doing this. Look at your headers for some segment where there are lots of lines in a row which are indented (continuation lines). This will be your problem header. As you are using ~all, your SPF record won't be that effective. You are better off coming up with a policy which wil ...


4

Since Nginx 1.7.5 you can use always to add a header irrespective of the response code: add_header X-Test "blahblahblah" always;


4

If you want to add headers then you want something like this: server { listen 80; server_name _; add_header X-Frame-Options "SAMEORIGIN"; add_header X-Frame-Options sameorigin; add_header X-UA-Compatible "IE=Edge,chrome=1"; add_header X-Your-Port-Header-Here $server_port; add_header X-Your-Protocol-Header-Here $scheme; ...


3

That looks like it might be an IPv6 address, though it's difficult to tell since you have mangled it.


3

Bad news! mod_headers in 2.0.59 doesn't seem to play nice with environment variables in its validation code. It parses like this: RequestHeader {action} {inhdr} {value} {envclause} For unset, 2.0.59 validates like this, scrapping a directive if it has a third argument (value) after the directive name: if (new->action == hdr_unset) { if (value) ...


3

You do not need the full verbose list of all mail exchangers - You probably have a higher-than-necessary level of debugging set somewhere that is causing some part of your mail chain to include this. Determine which part of your mail chain is adding this header. Then make it stop. :-)


3

Some additional clues According to http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5: identity The default (identity) encoding; the use of no transformation whatsoever. This content-coding is used only in the Accept- Encoding header, and SHOULD NOT be used in the Content-Encoding header. Akamai seems to be ignoring the fact that a server ...


3

in case you do not get any response body in your logs when using "Intended Response Body (E)"; eg.: SecAuditLogParts ABCEFHZ Make sure you also have activated the rule engine: SecRuleEngine On and check your settings for: SecRequestBodyAccess On SecResponseBodyAccess On


2

This answers your exact question: http://hoursofop.tumblr.com/post/17760274650 It applies to a Ubuntu system and worked perfectly for me. Be careful to choose the right "smtp" line in master.cf. I used a tab to indent the -o line. Also note that SendGrid strip out the X-SMTPAPI header from the email before it is sent on - so you won't find it there but you ...


2

You can do this via mod_security: Keyword "audit logging": http://www.modsecurity.org/documentation/modsecurity-apache/1.9.3/html-multipage/07-logging.html


2

This should mostly just be a matter of making sure that your modules and settings match between the two servers. Run a2enmod deflate on the server that's not compressing to make sure the module's enabled, then check to be sure the configurations match (server config in apache2.conf, site config in sites-available, and module config in ...


2

As per the Squid FAQ: Squid.conf ACLs Header modification via Squid ACLs is limited to deleting a header or replacing a matching header with a constant string. In other words, you won't be able to add arbitrary request headers simply by using Squid ACLs. The Squid ACLs limit you to deleting existing headers or replacing existing headers, but ...


2

The IPv4 header contains total length, which is the total length of the packet including header. The IPv6 header contains payload length, which is the length of the actual payload not including the header. Since both are 16-bit unsigned integers, the IPv6 packet can contain in it's payload an entire IPv4 packet including header, so the IPv6 packet can handle ...


2

The end user is forwarding their email via the MTA (like /etc/aliases).


2

What you want to use is the header_checks rules. You will need to tweak this for your particular servers but this is an example: /^Received:.* \[127\.0\.\.0\1\]\) by \S+\.server\.com \(Postfix\)/ IGNORE See http://www.postfix.org/header_checks.5.html for more details and options. See for an example post from someone doing the same thing: ...


1

First we define two smtpd process in master.cf, the one with rewrite enabled and the other with rewrite disabled. SMTPD with rewrite enabled was exist by default in master.cf. Now we will these lines 127.0.0.1:2552 inet n - n - 2000 smtpd -o receive_override_options=no_header_body_checks,no_address_mappings This will enable ...


1

acl_smtp_rcpt = acl_rcpt begin acl acl_rcpt: warn domains = !+local_domains condition = ${lookup{$sender_address}lsearch{/path/salesmen.list}{yes}} remove_header = Reply-to add_header = Reply-to: sales@domain.com warn domains = !+local_domains condition = ...


1

If you want cache responses in memcached you have to store your information in it manually by using something like a script. Nginx is not web accelerator like squid or varnish if you need that functionality out of the box take a look at varnish. It is working perfectly with nginx also.


1

You need to modify your mime.types file not your httpd.conf file. Add (or modify) the following line to your mime.types file and restart Apache. audio/mpeg mpga mp2 mp3 See this post about for an example mime.types file that should cover all of your application's needs.


1

I have a configuration similar to this one and it works use_backend webcams if { hdr(host) -i webcams.XX.YY webcams.YY.ZZ } use_backend spain if { hdr_dom(host) -i TT.es } default_backend DEFAULT Note that this config parses the "Host" header in two different ways: exact host name and domain only, always ignring the case. Idea: are you parsing the ...


1

Solved - Following line in /etc/postfix/master.cf was causing conflict : pickup fifo n - - 60 1 pickup -o content_filter= # -o receive_override_options=no_header_body_checks //commented this line out


1

There can be quite legitimate reasons for the From:-header to not match the Return-Path:-header. One example is mailing lists - the return path should be to the list server (which will manage bounces, to the point of possibly removing bad addresses from the list), while the From:-header should be from the person actually sending the mail. So you probably do ...


1

When you assign an IIS site to a TCP port, the IIS process actually binds to the TCP port. This means that any connection (less filtering at the stack level, example: software firewall) incoming on that TCP port is serviced by this IIS site instance. What you could do is: Create a CNAME for the FQDN you wish destined for the server for which the site is ...


1

You can use Reverse Proxy to silently redirect all HTTP requests to another port. Obviously, there still should be a site bound to TCP port 80 (that is the port which is used when no specific port is specified), which you will configure to make such redirect to another port. It is possible with IIS 7 + URL Rewrite module + Application Request Routing (or ...


1

You should be able to access it like so: subdomain.domain.com:3333 Furthermore, you could set up an alias on your domain controller to access it with a friendlier URL, saving colleagues from having to remember port numbers and whatnot. Note that this most likely belongs on the Server Fault Stack Exchange site, I have voted to migrate it there for your ...


1

Take a look at C_INCLUDE_PATH and CPLUS_INCLUDE_PATH environment variables: export C_INCLUDE_PATH=/usr/local/include/:${C_INCLUDE_PATH} export CPLUS_INCLUDE_PATH=/usr/local/include/:${CPLUS_INCLUDE_PATH}



Only top voted, non community-wiki answers of a minimum length are eligible