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

Proxy to add CORS headers with netcat

I'm looking for a little script using nc which will be used to add CORS headers (at least Access-Control-Allow-Origin: *) in order for my local ionic dev application to access a remote webservice.
Anthony O.
  • 674
  • 1
  • 5
  • 14
0
votes
1 answer

Haproxy rules(set-header) not working and it's not changing base url of request

I am trying to integrate cloud foundry adminui application. Url which I access is https://myexample.com/adminui/ It works as follows: Request https://myexample.com/adminui/ Response …
0
votes
0 answers

Ping request timed out when basehttpserver is loading website

I am running a website using basehttpserver. 10.0.xx.xx is the ip to access the site. There is a 'controller' with a cellular modem on it, which hosts the website and runs the basehttpserver. When loading a simple website, just a 22kb image file…
100pic
  • 101
0
votes
2 answers

Strip Tomcat Headers With Apache, then Cache Resources To Disk?

I've got mod_disk_cache working great in Apache. It's caching some of the requests coming out of Tomcat. But for various reasons I won't go into, we can't get Tomcat to drop the Expires and Cache-Control headers on other pieces of content. These…
0
votes
1 answer

What is simple way to ensure that HTTP request with some specific header come only from a specific IP only?

My web application run on Centos6. I want to protect my application. I want to ensure that HTTP request with some specific header come only from a specific IP only. (The header include a user name and I want to prevent HTTP header…
Michael
  • 597
  • 3
  • 9
  • 23
0
votes
1 answer

Can we log the `Accept-Encoding` field in request when using nginx?

I've read ngx_http_core_module#variables, however I cannot find the Accept-Encoding field.
xi.lin
  • 103
  • 1
  • 4
0
votes
1 answer

Which domain-name was requested? Running virtual hosts on Mongoose web server

I'm currently running Mongoose WebServer 5.5 on Windows 7 I have a number of virtual hosts, running on a single Mongoose server on one IP node. The access log entries are typically 157.55.39.146 - - [09/Nov/2015:15:32:44 GMT Standard Time] "GET…
Euan M
  • 101
  • 3
0
votes
0 answers

Forward Remote_addr across Apache and OHS

I am attempting a hosting site with weblogic listening behine OHS and Apache. I am able to retain the remote_addr on apache using remote_ip but not able to carry it forward to OHS. I can share configurations, the remote_addr on the OHS displays…
SanSharma
  • 1
  • 1
0
votes
2 answers

lighttpd: remove charset=UTF-8 from content type

lighttpd 1.4.31-4+deb7u3 automatically adds ;charset=UTF-8 to the content-type of .html and .php files. How can I remove that? Setting the content type in PHP itself does not help; lighttpd still adds the charset parameter - as soon as the mime…
cweiske
  • 791
  • 1
  • 13
  • 36
0
votes
0 answers

Serve growing audio file with Apache

I'm trying to play a growing audio file on my website and I don't know how Apache should be configured for this task. I read that I need to send a status code 206 (Partial Content). This is done by Apache automatically. In detail, my current…
basilikum
  • 217
  • 3
  • 11
0
votes
1 answer

Logging response headers in Apache reverse proxy without sending them to the client

We use serveral Apache servers as reverse proxy in front of numerous backend servers. The backend servers send a HTTP response header ("Cast") which contains an internal name of the backend server. In the reverse proxy I would like to log the…
Vernade
  • 1
  • 1
  • 2
0
votes
2 answers

nginx : add_header directive not working

My Issue: nginx add_header directive doesn't appear to be working What I have tried: In my nginx conf I have this: location ~* \.(ttf|woff|eot|otf|woff2|svg|svgz)$ { access_log /var/log/nginx/fonts.access.log; add_header…
mconlin
  • 123
  • 2
  • 7
0
votes
1 answer

Truncate Basic authentication username and password in Apache proxy

We need to proxy a request to a server. The sender has an autogenerated username and password, and will use basic authentication. We can't change these how these are generated by the sender. The server will accept only usernames and passwords that…
0
votes
1 answer

How do I capture unique id in haproxy logs?

I'm trying to capture the unique id for each request in my logs. I thought I could use capture request header X-Unique-ID len 16 on the header but its not working. Any suggestions? global log /dev/log local1 maxconn 4096 user haproxy group…
user1973314
  • 131
  • 2
  • 3
  • 8
0
votes
0 answers

font-awesome not displaying on Nginx, Rails 4, mina/puma

I made some changes to the nginx config file and I now cannot see any of the font-awesome fonts on FF and Chrome. The fonts are precompiled and in this directory: /root/sites/mina_deploy/current/public/assets When I Curl the site I get: HTTP/1.1 200…
Ben
  • 111
  • 3