HTTP Headers

HTTP Headers

HTTP Headers

HTTP headers are the core part of the HTTP requests and responses, and they carry information about the client browser, the requested page, the server and more.

Here are the main headers which can be used while using Jelastic environments for deploying your apps:

Header Description Value
host this request-header field specifies the Internet host and port number of the resource being requested, as obtained from the original URL given by the user or referring resource {environment_name}.{hoster_domain}:
x-forwarded-proto the originating protocol of an HTTP request http/https
x-real-ip ending IP address of a client connecting to a web server xxx.x.x.x (IP)
x-forwarded-for the originating IP addresses of a client connecting to a web server through an HTTP proxy or load balancer xxx.x.x.x, xx.xx.xxx.xx (IPs)
x-host the originating domain name of the server (for virtual hosting) and optionally the TCP port number {environment_name}.{hoster_domain}
x-uri a string of characters used to identify a name or a web resource /

In Jelastic you should take into consideration the following scenarios concerning environment topology:

  1. only 1 application server instancehttp headers 1 1
  2. balancer (as an entry point) and application server(s)http headers 2 1
  3. only 1 application server instance with Public IPhttp headers 3 1
  4. balancer (as an entry point) with Public IP and application server(s)http headers 4 1
Topology Supported headers
1 app server host
x-forwarded-proto
x-real-ip
x-forwarded-for
x-host
balancer and app server(s) host
x-real-ip
x-host
x-forwarded-for
x-uri
x-forwarded-proto
1 app server with Public IP host
balancer with Public IP and app server(s) host
x-real-ip
x-host
x-uri