Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have compiled ngx_pagespeed, but forgot to remove the version number. Is there any way to overwrite/delete/hide them?

Apache has feature to 'unset' them, but I couldn't find anything similar for nginx. Perhaps I do not know how to use headers module?

Or should go to look around in source code and then recompile?

Perhaps anyone could point the exact location then?

Thanks.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Pagespeed module has a built-in capability to change this in the configuration. Please use the following in your vhost or nginx.conf or where you defined pagespeed configurations...

pagespeed XHeaderValue "Powered By Dzh - Change this to whatever!";

Ref: https://developers.google.com/speed/pagespeed/module/configuration (under the header "Specifying the value for the PageSpeed header").

share|improve this answer
    
Brilliant, solved it! –  Dzh Oct 10 '13 at 16:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.