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.

learn more… | top users | synonyms

1
vote
1answer
2k views

Set Access-Control-Allow-Origin in nginx using wildcard domain

With nginx can I specify Access-Control-Allow-Origin using a wildcard like *.mydomain.com? Would it look like: add_header Access-Control-Allow-Origin *.mydomain.com; Thanks.
1
vote
2answers
1k views

nginx redirection cycle with X-Accel-Redirect

Trying to get nginx to work with the X-Accel-Redirect header. I'm getting this error: *24 rewrite or internal redirection cycle while internally redirecting to "/app/index.php", client: 127.0.0.1, ...
0
votes
1answer
1k views

Lowercase headers [closed]

One thing I've noticed about CloudFlare and Google's web servers are that they both use lowercase response headers. Is this just for looks, or does it actually provide a performance increase? I'm ...
-2
votes
1answer
85 views

Why is there a redundancy in HTTP status headers? [closed]

I'd like to learn something from the design of HTTP protocol - why is there, for example, "Not found", following the "404" code? Wouldn't the number itself be sufficient?
1
vote
1answer
4k views

From which Apache version onward is LimitRequestFieldSize no longer hardcoded to 8k max?

Title says it all: from which version onward is the LimitRequestFieldSize no longer hardcoded to a max. of 8k? It seems 2.2.15 is still affected.
3
votes
1answer
4k views

Disable compression on SSL/TLS connections in Apache < 2.2.16 using mod_header

Because of CRIME, as I understand, compression on SSL connections have to be turned off. In newer versions of apache this can be done with a newly introduced directive SSLCompression off, in older ...
1
vote
1answer
155 views

How to deal with downtime of web server without losing SEO ranking?

I am having a website which I'm planning to keep in maintenance mode for about 2 days without losing SEO ranking. According to Google blog post, we can do this by having a 503 Service Temporarily ...
3
votes
2answers
2k views

nginx: Specify custom headers in rewritten location blocks

I'm trying to set some headers only for specific location blocks in nginx. The problem I have is that those location blocks contain rewrite statements, which apparently seem to drop the custom ...
0
votes
1answer
2k views

Why is IIS 7.5 seeing some requests as HTTP/1.0?

While trying to work out why Static File Compression wasn't working on one of our IIS servers, the error was coming back as "NO_COMPRESSION_10" which translates to: Server not configured to ...
0
votes
1answer
3k views

Cache Control Headers with IIS 7.5

I'm trying to wrap my head around client side (web browser) caching and how it works in relation to IIS 7.5 cache control headers. In particular: If we want to force clients to reload cached ...
1
vote
0answers
511 views

Why pragma: no-cache does not work anymore on IE?

On my employer web server, we have 200+ PHP applications with this kind of code to allow download of a file : header('Content-Disposition: attachment; filename="file.pdf"'); header('Expires: 0'); ...
2
votes
2answers
1k views

nginx conditional Accept header

Some mobile devices send the following incorrect requests to our servers : GET / HTTP/1.0 Accept: User-Agent : xxx The empty Accept header causes our Ruby on Rails server to throw back a 500 error. ...
0
votes
1answer
463 views

Have set Expiration time: Still getting “Query string present but no explicit expiration time”

I have one local Apache instance running with mod_cache (+ disk & mem) enabled, and it seems to cache content from my appserver fine. My app server sets Expiration headers and Last-modified. Yet, ...
2
votes
1answer
140 views

My Apache 2.2 local test server with php none cgi automaticly removes logged in ipad users

My Local httpd Apache 2.2 test server with php installed is having problems with a ipad user. I have scripted a loggin script that uses php sessions to keep them loggedin, the page has a javascript ...
1
vote
2answers
717 views

HAPROXY per domain redirection

I'm trying to redirect requests to my load balancer by domain name with acl and hdr_dom, to a separate backend. The redirection works ok with the first request - 'GET /' (the destination server is a ...
1
vote
1answer
142 views

Delivering partial content to iTunes podcast [closed]

We've noticed that our Podcasts, when being streamed through iTunes, are unable to "seek" properly. Any time you click on the timeline, it restarts from the beginning. I'm pretty sure we're ...
0
votes
1answer
848 views

nginx rule to capture header and append value as query string

I have an interesting problem I need to solve in nginx: one of the sites I'm building receives inbound traffic on port 80 (and only port 80) which may have a certain header set in the request. If this ...
0
votes
1answer
562 views

Apache returns HTTP 206 for GET /file.mp3

I am making a get request to an SSL enabled site on apache (so wireshark isn't giving me anything to useful). In my Apache SSL access log I see the following entry: 1.2.3.4 - my.username ...
2
votes
1answer
1k views

server_tokens off but still publishing them

I added server_tokens off; to http{} section of /etc/nginx/nginx.conf file and restarted nginx with service nginx restart command. but server still publishing the server tokens when responsing ...
1
vote
1answer
672 views

Blocking HEAD, DELETE, etc. with lighttpd

So I have lighttpd installed and the site it runs only needs to respond to GET requests. I was wondering how I can return 405 responses with Allow: GET headers to anything but GET requests using ...
-1
votes
2answers
80 views

Website Set up on IIS accessible over internet

We have a website hosted on port 80 with the name www.abcabc.com. Now we want to host another website on port 1111 with name www.xyzxyz.com and expose it to the internet. When i asked my DNS team ...
2
votes
1answer
2k views

LiteSpeed enable Access-Control-Allow-Origin (no response header on CORS request)

Seriously, I can't find a single page discussing this for litespeed. Using this format in the htaccess "Header set Access-Control-Allow-Origin http://aSite.com" (and https) sends the setting in the ...
1
vote
1answer
525 views

apache if ie send some header

I want to set some headers just for MSIE using apache configuartion file. How can i set the condition for that ? # better website experience for ie users <IfModule mod_headers.c && ...
1
vote
1answer
2k views

Load Balancing with haproxy and http-send-name-header Host

I ran into the following problem: tldr; When dynamically rewriting the HTTP Host header with http-send-name-header Host haproxy seems to mess up HTTP Response headers. Doing so works fine when using ...
2
votes
2answers
193 views

last modification date of web page unknown

I would like to check the age of the document in the webpage but it does not show! here is the result of a telnet to the server: telnet av.hostoi.com 80 Connected to av.hostoi.com. HEAD / HTTP/1.0 ...
2
votes
1answer
2k views

Stop squid caching 302 and 307 with deny_info

TLDR: 302, 307 and Error pages are being cached. Need to force a refresh of the content. Long version: I've setup a very minimal squid instance running on a gateway which shouldn't not cache ANYTHING ...
6
votes
2answers
459 views

IIS sets http header Expires to -1, how do I override this with mod_expires

I'm using an IIS website with a Apache HTTP reverse proxy (mod_proxy with ProxyRequests Off). I want to control the expires headers in apache (don't ask), but IIS is setting the header Expires: -1. ...
0
votes
1answer
138 views

Setting correct Content-Type sent from Wordpress, on Apache server

I need help pointing me in the right direction for setting the ContentType returned by Apache for content produced by WordPress. I'm having trouble figuring out why WordPress is returning incorrect ...
2
votes
2answers
157 views

One single page showing 3 requests (also printing the headers)

Someone in my studio designed a webpage some years ago, and now the client decided to change the server (he moved to a Linux Apache server running Gen2 SMP, 64 bits, PHP version 5.3.8, Standard MYSQL ...
1
vote
1answer
655 views

Can I use adsutil.vbs to remove the 'X—Powered-By' response header from IIS6

Can I use adsutil.vbs to remove the X—Powered-By response header from IIS6 configuration? We have a site that is running on some IIS6 servers. Migration to IIS7 is a few months away at least. In the ...
1
vote
2answers
1k views

Http header 304 and caching?

Our company uses these settings( don't ask me why) - for every request they want a new request from server. this is an intranet system which uses only IE. They defined it in : We also have ...
-1
votes
2answers
983 views

Apache doesn't send me an MP3 header even when I use a direct address to the file

Apache doesn't send me an MP3 header even when using a direct address to the file. It means I can play it with Flash audio players on my web pages, but when I tried to download from the direct address ...
6
votes
2answers
5k views

Nginix proxy caching - how to check if it is working?

I have set up my nginx.conf file to use proxy caching from tutorials I have found online. However, I am trying to figure out how to check if it is actually working. I've read somewhere that adding ...
0
votes
3answers
1k views

Uploading to another domain gives HTTP code 405

I'm trying to upload a file (which can be quite large) from the website of one server to the backend of another server using plupload. Lets say: domain 1 = http://www.websitedomain.com/uploadform ...
2
votes
3answers
2k views

HTTP/1.1 Status Codes 400 and 417, cannot choose which

I have been referred to here that it might be of better help, I've got a processing file which handles the user sent data, before that, however, it compares the input from client to the expected ...
0
votes
1answer
2k views

Get Squid to pass X-Requested-With header

I have configured a squid 3.1 proxy server. Everything works great except for the X-Requested-With header. I can't manage to figure out how to pass that header to the site I'm attempting to open via ...
1
vote
1answer
763 views

Make nginx avoid cache if response contains Vary Accept-Language

The cache module of nginx version 1.1.19 does not take the Vary header into account. This means that nginx will serve the same request even if the content of one of the fields specified in the Vary ...
1
vote
3answers
9k views

why i cannot download jdk from oracle web site directly without AuthParam?

that is download with the following command, why it fails to download that file? wget http://download.oracle.com/otn-pub/java/jdk/6u35-b10/jdk-6u35-linux-i586.bin the following command works, but ...
0
votes
1answer
569 views

Chrome rejecting connections to netcat webserver

I have a very simple netcat webserver set up to display the /etc/motd file for some machines, which works fine in Firefox, but intermittently fails in Chrome. I suspect it's an HTTP header / caching ...
1
vote
1answer
743 views

Response headers in Memcached+Nginx

Is there any way to cache response headers along with the response body in Memcached for use with Nginx?
2
votes
2answers
3k views

Can't turn off SNI on apache

When I go to: http://web-sniffer.net/ and check the headers of my site (https://www.example.org), I get a status code 200 But when I use the radio button HTTP/1.0 (without Host header), I get a ...
4
votes
2answers
2k views

How to set cache to never expire and minimize requests in Nginx?

I have a cache invalidation system in place, so I need to set the cache for css|js to never expire. I tried this location ~* \.(js|css)$ { # |png|jpg|jpeg|gif|ico expires max; #log_not_found ...
10
votes
2answers
4k views

Nginx add_header for a 50* page

I'm currently trying to get nginx to add a header to the response when it is sending some kind of 50* error. I already have an add_header directive on the http block, and that gets respected for all ...
2
votes
1answer
11k views

Adding and using header (HTTP) in nginx

I am using two system (both are nginx load balancer and one act as an backup). I want to add and use few http custom headers. Please give your suggestion e.g upstream upstream0{ ...
0
votes
1answer
960 views

IIS 6 Header too big, how to tune this iis setting

IIS 6 seems to be limited (by default at least) to an http header of 16k. I have a 3rd party tool that is talking to the web server (ajax) and sending an http header that is bigger than that. Since I ...
0
votes
1answer
280 views

FirePHP on Apache2 cause 502 error

I've got a problem with FirePHP. FirePHP doesn't work anymore on my Server (Debian 6 Squeeze with Apache2). When I am loading my site in my Firefox with FirePHP enabled, I receive an 502 error and an ...
1
vote
2answers
635 views

Can Apache2 be configured to return both HTTP 1.0 and 1.1?

I'm trying to figure out a caching issue. We are currently using a CMS with built in caching. We can then delete the cached copy via the control panel and the uncached page will be served until we ...
5
votes
3answers
537 views

Is my webserver allowing pre-fetching?

I have an image based website that hosts multiple galleries. When a user clicks one of the images the views property for the particular image is incremented. However, I noticed when using Firefox ...
1
vote
3answers
1k views

Use apache to strip off a URL param and add it as a custom HTTP header on a redirect

Let's say my browser issues a request to http://localhost/accounts?memberUuid=<some uuid> I'd like apache2 to pickup that request, add a custom HTTP header with the uuid in it, strip the uuid ...
1
vote
1answer
634 views

How to configure 503 (service unavailable) response header in IIS 7 web.config?

My site is on a shared host and I need to do some maintainance work, which needs downtime. For SEO reasons I need to cause a 503 http response to be sent to clients. How can I do that from my ...