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

How to use it on Windows's nginx? #9

Open
gitercn opened this issue Dec 10, 2021 · 2 comments
Open

How to use it on Windows's nginx? #9

gitercn opened this issue Dec 10, 2021 · 2 comments

Comments

@gitercn
Copy link

gitercn commented Dec 10, 2021

I'm using a Windows server with nginx and I want to use this to hide nginx in header. It appears I need to compile nginx with this module which seems to be quite complicated. Is there any released binary that I can use it easily?

@dvershinin
Copy link
Contributor

There are no precompiled binaries at the moment, and there's no plan to support them. Someone close to Windows development maybe can contribute the binaries.

@jamesmacwhite
Copy link
Contributor

For hiding just the server header, you can do this:

server_tokens off;
more_clear_headers 'Server';

server_tokens is to remove the version string from the default error pages.

more_clear_headers requires you have the headers more module which isn't part of the official NGINX source, but is a popular module which often exists as "extras", I don't know if any Windows builds provide this though. It is available in various Linux package managers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants