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:

HeaderDescriptionValue
hostthis 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-protothe originating protocol of an HTTP requesthttp/https
x-real-ipending IP address of a client connecting to a web serverxxx.x.x.x (IP)
x-forwarded-forthe originating IP addresses of a client connecting to a web server through an HTTP proxy or load balancerxxx.x.x.x, xx.xx.xxx.xx (IPs)
x-hostthe originating domain name of the server (for virtual hosting) and optionally the TCP port number{environment_name}.{hoster_domain}
x-uria 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 instance


  1. balancer (as an entry point) and application server(s)


  1. only 1 application server instance with Public IP



  1. balancer (as an entry point) with Public IP and application server(s)


TopologySupported headers
1 app serverhost
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 IPhost
balancer with Public IP and app server(s)host
x-real-ip
x-host
x-uri