Questions tagged [headers]

Probably not the tag you want, please use something more specific like http-headers or smtp-headers.

65 questions
9
votes
1 answer

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 site accessible from http://localhost/ …
linux404
  • 133
  • 1
  • 2
  • 8
7
votes
1 answer

Chrome DevTools - Request Header Size

Is there a way to get the total size (in bytes) of the request header that the browser is sending to the server for each request?
stepanian
  • 171
  • 1
  • 1
  • 4
4
votes
0 answers

HTTP Debug method reveals Server header on IIS

Stuck with really weird problem and can't figure out how to handle it. So, I have asp web api application hosted in IIS 10. I use IIS Rewrite module with outbound rule which removes any Server header:
4
votes
1 answer

HAProxy - Add response header based on request host

I have a HAProxy set up to redirect traffic to a few internal servers. What I'm trying to do is to set some response headers, based on the request host. Unfortunately I can't get it to work. Current settings look like this acl mywebsite…
elmo
  • 55
  • 2
  • 8
4
votes
1 answer

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 more clever to avoid duplication on both @puma and…
Habovh
  • 271
  • 3
  • 12
4
votes
1 answer

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: ' . filesize($image_name)); header('Content-Type:…
3
votes
1 answer

Nginx on CentOS: How can I change the "Server" header?

I'm running Nginx on Centos6. For security reasons I'd like to change/remove the Server HTTP header contained in the response headers. For instance,nginx's default Sever header looks like:I'm running Nginx on Centos6. For security reasons I'd like…
joejoe12
  • 31
  • 1
  • 2
3
votes
1 answer

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 environment variable to be filled with the user…
3
votes
1 answer

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 delivered however the question is if this spam is…
2
votes
0 answers

Nginx proxy_pass loses headers when using http2

I've encoutered a problem with nginx losing headers to backend when using http2 protocol on nginx(regular http to Wildfly 10 backend). The below config works when taking the http2 parameter away and when the http2 parameter is enabled, the frontend…
2
votes
0 answers

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 of the reverse proxy IP every time. This is…
jswny
  • 31
  • 1
  • 2
2
votes
3 answers

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 TCP header, we are talking about the header without…
Totem
  • 145
  • 1
  • 6
1
vote
1 answer

set header in .htaccess not working if REQUEST_URI contains a word

I need to set some headers if REQUEST_URI contains the "compile" word. My uri is: http://myurl/compile/123456/123456?token=myvalue This is the code in the .htaccess that DOES NOT work: Header always set MyHeaderCompile myvalue "expr=%{REQUEST_URI}…
Giacomo M
  • 131
  • 6
1
vote
1 answer

X-XSS-Protection header not set for the HTML document even that it is enabled in config file

I enabled the X-XSS-Protection header in the web.config file: Now the…
NunoF
  • 11
  • 1
1
vote
1 answer

Users with Google Proxy IPs

On my website, we log user IPs to ensure we're able to properly moderate and prevent abuse. We are aware of Proxies, such as Opera VPN, Tor, and others. However, I am not aware of Google itself having a Proxy, other than the "Data Saver"…
Nuno
  • 461
  • 1
  • 5
  • 23
1
2 3 4 5