Questions tagged [http-headers]

HTTP header fields are components of the message header of requests and responses in the Hypertext Transfer Protocol (HTTP). They define the operating parameters of an HTTP transaction.

HTTP header fields are components of the message header of requests and responses in the Hypertext Transfer Protocol (HTTP). They define the operating parameters of an HTTP transaction.

Refer to RFC 2616

624 questions
0
votes
1 answer

max-age=0 sent by browsers despite headers modified everywhere

I have a headers/cache issue in my lamp [centos] website. Config: [root@localhost httpd]# httpd -v Server version: Apache/2.2.23 (Unix) Server built: Nov 25 2012 15:03:00 [root@localhost httpd]# php -v PHP 5.5.22 (cli) (built: Feb 20 2015…
Sebas
  • 535
  • 1
  • 8
  • 18
0
votes
0 answers

apache2 ubuntu 14.04. Expire date has been set, but it is not cached anyway

As shown in screenshot, the expire date is 11 May 2016 (a year from now), but the resource is always downloaded everytime I access the website. I set expire date by using htaccess: ExpiresActive on ExpiresDefault …
0
votes
0 answers

HTTP response returns valid content-length header but no message body

I've recently found a very strange problem which I can't explain. After posting a HTTP request to our server occasionally the following response will occur: HTTP/1.1 200 OK Date: Mon, 13 Apr 2015 10:00:53 GMT Server: Apache/2.2.16 Content-Length:…
dan983
  • 101
  • 1
0
votes
0 answers

X Forwarded For Showing Origin IP

My X-Forwarded-For header is showing my origin IP. I am routing traffic via Cloudflare and I know it's touchy with that header. I changed it to MYNAME-Forwarded-For just to check and it still shows the origin. Does anyone have any experience seeing…
HectorOfTroy407
  • 135
  • 1
  • 5
0
votes
0 answers

How to preserve the name of the remoteUser while reverse proxy?

I am using a software which enables me to log my operations and one the things it is loggin is the name of the remote user. Neverthless, I have a little problem since I am working on a secured network, which gets Http requests from the port 9200 and…
mehmetozer
  • 109
  • 3
0
votes
2 answers

Decrypt a Header in Apache (HTTPD)

I've been asked to have a look at whether it's possible to decrypt a header during the processing of the request. The specific use case is to respond to the decrypted contents of the header by removing another header from the request (if the…
ianxh
  • 11
  • 1
0
votes
0 answers

Nginx: How to access my reverse proxied sites via separate subdirectories

I have 2 web applications that I want available under http://example.com/demo1 and http://example.com/demo2. My config below correctly reverse proxies to each site, and the site is mostly functional, but some API requests from my web application are…
modulitos
  • 335
  • 1
  • 3
  • 16
0
votes
1 answer

Configure Server to Initiate Http Keep-Alive

I have a set of clients that aren't including an http keep-alive header in their requests to my server. If I use something like Varnish to filter the incoming requests and add the keep-alive header to the request before it reaches my web server,…
HappyCoder86
  • 103
  • 3
0
votes
1 answer

NGiNX Custom Cache param based on regex match

My question(s) are as follows: How do I set custom variables based on regexp against a useragent? How do I set custom headers for the reverse-proxy request? How do I use these values as caching parameters? Details: I'm doing an initial output in…
Tracker1
  • 293
  • 3
  • 11
0
votes
2 answers

With nginx serve a custom 404 page with header 404, without changing the browseraddress

How do I force nginx to serve a custom 404 page while responding with a 404 header, without changing the address of the browser so the user can easily retype? set $allowed 0; #(updated after comments) error_page 404 /404page.html; #(updated after…
C.A. Vuyk
  • 632
  • 10
  • 18
0
votes
1 answer

Varnish cache with NGINX files not updating WordPress

It seems that Varnish is missing or not validating cache properly. When I try and purge my cache, I get 200 OK Cache successfully cleared, but my page does not update. I am simply making HTML changes to my footer.php (using WordPress) but they are…
David
  • 131
  • 2
  • 12
0
votes
1 answer

Apache configuration redirect using only redirect, not rewrite

PS: this is the 2nd part of the question originally posted here. I'd like to disable the HSTS header completely for specific virtual hosts. I have (per recommendation) a redirect in the 443 container for each one of these vhosts. It works fine, but…
Gaia
  • 1,855
  • 5
  • 34
  • 60
0
votes
1 answer

Serve static files from directory depending on http referrer inside of nginx

My server hosts images, but the content of images have to be different for the same link and have to deepens on http referrer. For example: Website 1 load image website1.jpg from www.example.com/123123/img.jpg Website 2 load image…
0
votes
0 answers

Override PHP Cache-Control Header from Apache config?

PHP is setting the Cache-Control header in multiple places. I don't want to break my code upgrade path, but I'd like to change the Cache-Control header in Apache config instead. However, it looks like PHP headers taking precedence. Is there a way to…
Rustavore
  • 101
  • 2
0
votes
1 answer

Measuring HTTP traffic basic on URIs and custom headers

I'm currently working on an API service and one of the requirements is that we measure the amount of data used by each user of the system, and track how many times they use the API. So bandwidth usage and statistics on which parts of the API they…