Questions tagged [headers]
Probably not the tag you want, please use something more specific like http-headers or smtp-headers.
71
questions
3
votes
1
answer
1k
views
Set environment variables from header for Ruby/Rails app hosted in Nginx/Passenger
I installed a server for Redmine, running with Nginx/Passenger. The server also hosts Gitlab and it goes well.
I put some kind of SSO plugin for Redmine (which I found and installed) and it needs an ...
1
vote
1
answer
225
views
Postfix MTA - Match string in header fields
I'm trying to block some spammer by filtering some fields in the mail header, but it isn't working. The spammer is adding random domains in the headers, but the "user" is always the same, like this: ...
1
vote
1
answer
7k
views
Keeping Headers During NGINX Rewrite
I am attempting to set up an NGINX proxy to redirect all requests to one of two servers based on the contents of a query string argument. Essentially:
https://my.site.com/api/...&server=a
...
0
votes
1
answer
682
views
nginx regex with capture bug
I'm trying to use regex capture functions for create an Access-Control-Origin header.
So y have two main capture, one for the adress of website ( likehttp://example.com)
and another for the port ...
0
votes
1
answer
1k
views
Pros/Cons to disabling HEAD requests with Nginx?
I have a static blog/site and I'm wondering if there are any negative implications of disallowing/disabling HEAD requests within my Nginx conf? For example: would it break the site with certain web ...
3
votes
1
answer
756
views
Need help determining origin of spam email
As a quick background we have spam that is being sent out with our domain name. As a result we have added SPF record to our domain DNS, now obviously this will assist in making sure this spam is not ...
1
vote
1
answer
1k
views
Ignoring forwarder IP in syslog-ng
We are getting syslog-ng feeds from a forwarder that we don't control.
The issue is that they are using an older version (RHEL 6), and while they have keep_hostnames set to 'yes' (chain_hostnames to '...
4
votes
1
answer
3k
views
Add proxy headers in named location using nested location regex
I'm trying to setup a WebSocket endpoint on my Rails API using Nginx and Puma.
What I have (working but ugly)
The following Nginx configuration works fine, however I feel like I could use something ...
0
votes
1
answer
2k
views
How to avoid duplicated configuration in Nginx Location Config
Take this Nginx location config as example:
location ~* \.(gif|jpg|jpeg|swf|css)$ {
add_header Cache-Control "max-age=259200, public";
}
location ^~ /abc/ {
try_files $uri /abc/generic.png;
}
...
1
vote
1
answer
1k
views
Is https preventing a proxy from adding x-forward-for header?
I'm trying to troubleshoot an issue for a user of my service https://jsonip.com.
Last week I enabled forcing 301 redirects for all http to https connections.
The user I'm trying to help now was ...
13
votes
1
answer
47k
views
proxy_set_header not working
/etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm;
# Make ...
1
vote
0
answers
1k
views
Haproxy Nginx : How not to forward the local port?
I have haproxy which listening on ports 80 and 443 and behind Nginx listening locally on ports 8000, 8001, 8002 etc...
By default, all works fine but when an application web made a redirect 301, it ...
8
votes
2
answers
7k
views
Cant connect to S3 with nginx
I'm trying to serve static and media files from the amazon S3 bucket but Nginx can't connect to it
Here is the error I get
<Error>
<Code>AccessDenied</Code>
<Message>
AWS ...
1
vote
1
answer
460
views
LUKS Header - 30kB mysteriously missing
I have a disk containing (only) a LUKS encrypted volume. That was created on a bare drive with no partition table using cryptsetup v.1.6.1. When unlocked, I can check the size of the decrypted ...
2
votes
0
answers
250
views
Use different client IPs with mod_rewrite and mod_remoteip
I have a reverse proxy that my site points to to help with DDoS protection. I have mod_rewrite set to use a specific header provided by the reverse proxy in order to pull the actual client IPs instead ...
4
votes
1
answer
7k
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: ' ....
2
votes
3
answers
491
views
Is TCP header the same as TCP segment?
So, is a TCP header actually the same thing as a TCP segment? I was reading this page,
where it reads near the end that:
Even though it might seem they are, in most cases, when referring to
the ...
0
votes
1
answer
501
views
SQL server management studio 2005: Still can't copy column headers(checked option to include it already)!
I already changed the option to include column headers(Tools->option->results to grid->include column headers). Yet if I copy paste a Table or SQL query grid data results into Excel, i don't export ...
0
votes
2
answers
170
views
Files and their headers? [closed]
(I'm a dos guy , I always liked to view files in norton commander and see inside stuff etc)
however over the years I've noticed that each file(well , most of) ( binary files ) has header :
For ...
0
votes
3
answers
439
views
UDP pseudoheader
Is it true that in the UDP header 2 bytes store a checksum for verification purposes by the destination host, and that this checksum is generated from a pseudoheader? If this is true, then why does a ...
1
vote
1
answer
261
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 ...