Questions tagged [requestheader]

RequestHeader is an Apache configuration directive. See also the [http-headers] tag.

RequestHeader is an Apache configuration directive in the mod_headers module. Usage of RequestHeader is documented on the Apache site.

See also

14 questions
6
votes
1 answer

Need to add request headers to every request in Apache

I'm trying to add a header value to every request via Apache (ver 2.2). I've edited my VirtualHost to include the following vaiations: (I've tried both RequestHeader and Header, add and set in all of these cases) RequestHeader set X-test_url…
meleager
  • 63
  • 1
  • 1
  • 3
2
votes
1 answer

Nginx - Even after adding the directive 'access control allow origin' the request logs error

I am trying to run nginx infront of my nodejs application (I am using windows machine) My NodeJS Application is running in 3000 port I have started the Nginx at 8070 port When i try to hit http://localhost:8070/ from browser am getting the issue…
VJohn
  • 121
  • 1
  • 3
2
votes
1 answer

Add a request header on mod_proxy based on the value of another request header

I have a server running mod_proxy and I need to essentially rename a request header. A proxy closer to the origin is stripping off the X-Forwarded-For header, but we need that data to persist, so I want to add the value to a different header to…
Glenn Slaven
  • 2,330
  • 2
  • 29
  • 41
2
votes
3 answers

Apache2 - mod_rewrite : RequestHeader and environment variables

I try to get the value of the request parameter "authorization" and to store it in the header "Authorization" of the request. The first rewrite rule works fine. In the second rewrite rule the value of $2 does not seem to be stored in the…
Guillaume
  • 1,073
  • 5
  • 12
  • 24
2
votes
2 answers

Where to type RequestHeader in apache?

I need to add to prevent attack: # a2enmod headers RequestHeader unset Range RequestHeader unset Request-Range Where I can add it? This is my htttp.conf, maybe another file? ServerName www.example.com DocumentRoot /path/
Dracontis
  • 125
  • 1
  • 2
  • 7
2
votes
1 answer

What is the request line for HTTP/2?

For HTTP/0.9: GET / For HTTP/1.0: GET / HTTP/1.0 For HTTP/1.1: GET / HTTP/1.1 Host: example.com What is the request line for HTTP/2? Is it something like: GET / HTTP/2.0 Or HTTP/2?
1
vote
1 answer

Setting request header based on URI in an Apache reverse proxy

I'm configuring Apache 2.4 to run as a reverse proxy for several applications. One of these is Artifactory, which says I should use Apache to set a header ( the header is: X-Artifactory-Override-Base-Url) in the request when using configuring…
1
vote
1 answer

How to add a header using another header's value in Apache HTTP Server

My Apache server is proxying a request in which it receives a header (oidc_access_token). How can I add another header, Authorization, in the forwarded request with value that includes a prefix (Bearer) and the value of the oidc_access_token…
codependent
  • 141
  • 1
  • 8
1
vote
1 answer

How to set a HTTP Request Header to the current date and time with IIS8

I am currently using a Microsoft IIS8 server as a reverse proxy for URL rewriting. Currently there is the issue, that i need to set a HTTP Request Header on the IIS. I already went ahead and created a blank rule and set the condition. How do i get…
lt_katana
  • 11
  • 1
  • 5
1
vote
1 answer

Apache2 - Forward a value from URL param OR cookie, whichever is present

I managed to use apache to strip off a url param and stuff it in a header to be passed on to another server. See this question for reference. Now I would like to add to this by getting the value for the header from a cookie if it's not present in…
Samo
  • 223
  • 2
  • 10
0
votes
1 answer

416 Requested Range error in a Social Engine install

I am unfortunately saddled with a software package called Social Engine. Don't ever, ever buy it. It is extremely buggy and the tech support is beyond awful. Anyway, I asked (paid even) them to do an upgrade and three days later (three days!) they…
Lynn
  • 299
  • 6
  • 16
0
votes
0 answers

Apache X-Authorization request header

I'm using Basic file type authorization in my Apache httpd configuration. And my http request contains X-Authorization request header instead of Authorization. I'm getting unauthorized error. How can I get my request authorized? What changes I…
0
votes
1 answer

UseCanonicalName On applied however host of request header still wasn't change

I had an issue with website redirection and I found that my rewritecond input= 'www.example.com' and my request header host = 'example.com'. So I try to apply UseCanonimalName On in vhost where my ServerName define as 'www.example.com' by hoping…
0
votes
1 answer

Apache: No custom headers in environment variables

I've just installed a new webserver (Debian Buster, Apache, Dovecot, ISPConfig) to replace an old webserver. One of my websites uses custom request headers (through Javascript) to pass information to a perl script on the server: XMLHttp.open("POST",…
Zippy1970
  • 157
  • 2
  • 8