HTTP / 1.1 200 OK

What does this mean and why does it appear at the bottom of ALL html, php, css, js files?

HTTP/1.1 200 OK
Date: Fri, 06 Nov 2009 00:35:42 GMT
Server: Apache
Content-Length: 0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/plain 

I am running the nph-proxy.cgi script.

I already disabled ServerSignatures and set it to Production in apache2.conf.

UPDATE:

I am rewriting

myproxysite.com/http/someothersite.com

to

 myproxysite.com/cgi-bin/nph-proxy.cgi/http/someothersite.com

and this HTTP header is shown at the bottom of each page.

However, when I delete the rewrite rules, this problem is gone! Meaning, when I access the proxy through myproxiste.com/cgi-bin/nph-proxy.cgi/http/someothersite.com, the HTTP header is NOT at the bottom.

+3
source share
3 answers

They look like server headers and should not be displayed by the browser.

HTTP/1.1 200 ok

means the server is responding using HTTP protocol version 1.1. 200 is the code used when everything is in order.

Date: Fri, 06 Nov 2009 00:35:42 

Server Date ...

GMTServer: Apache

Server name

Content-Length: 0

( 0 )

Keep-Alive: timeout=15, max=100

.

Connection: Keep-Alive

Content-Type: text/plain

mime (HTML text/html)

HTTP-

html (-)

, .

+5

These headers usually appear in front of the content, and the browser “eats” them so you never see them. The fact that you see them at the end of the documents implies that something might nph-proxy.cgiadd them to the output for each request. It could be a mistake, or rather, just a simple wrong setup.

0
source

Source: https://habr.com/ru/post/1722067/


All Articles