Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record webserver and platform #223

Open
hexmode opened this issue Jan 15, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@hexmode
Copy link

commented Jan 15, 2015

There is interest (https://phabricator.wikimedia.org/T86559#976694) in finding out how many windows users there are of MediaWiki. It would be good to use the response headers to gather this sort of information. Even if we only recorded IIS/Apache/nginx, that would help.

@kghbln

This comment has been minimized.

Copy link
Member

commented Feb 3, 2015

Hmm... for some reason it was/is not possible to fetch the data for the webserver. I think to remember that @thingles and I e-mailed about this in early 2013. No sure what the exact issue was. For a start the field for it is present in the "Website" template from the very start of its existence.

@hexmode

This comment has been minimized.

Copy link
Author

commented Feb 3, 2015

I don't understand why it isn't possible, but maybe there is something about the way the bots are written that I don't understand.

For instance, I see that a request to grab my avatar here results in a server response with the included header line:

x-served-by:    cache-dfw1828-DFW
X-Cache-Hits:   1
X-Cache:    HIT
Via:    1.1 varnish
Vary:   AuthorizationAccept-Encoding
Source-Age: 33
Server: Apache

For this, "Apache" would be appropriate. Maybe an additional field that says "Via: 1.1 Varnish".

A request on wikiapiary itself results in the following header lines:

x-content-type-options: nosniff
Transfer-Encoding:  chunked
Server: nginx/1.7.1
Last-Modified:  Fri, 02 Jan 2015 19:25:17 GMT
Expires:    Thu, 05 Mar 2015 17:33:52 GMT
Date:   Tue, 03 Feb 2015 17:33:52 GMT
Content-Type:   text/javascript; charset=utf-8
Connection: keep-alive
Cache-Control:  public, max-age=2592000, s-maxage=2592000

For this, "nginx/1.7.1" would be appropriate.

A request to a known IIS server gives:

X-Powered-By:   ASP.NET
X-MS-InvokeApp: 1; RequireReadOnly
x-frame-options:    SAMEORIGIN
x-content-type-options: nosniff
X-AspNet-Version:   4.0.30319
Via:    NS-CACHE-9.3: 1
Vary:   Accept-Encoding
Server: Microsoft-IIS/7.5

For this, "Microsoft-IIS/7.5" would be appropriate. Maybe an additional field that says "Via: NS-CACHE-9.3: 1".

@kghbln

This comment has been minimized.

Copy link
Member

commented Feb 3, 2015

Dunno either, I was just adding info about that there was some kinda issue. Keeping fingers crossed though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.