这是indexloc提供的服务,不要输入任何密码
Skip to content

VHOST Disable Nginx Server version information #857

@lafama

Description

@lafama

Currently this is what we get on the response header

Status Code: 200
date: Thu, 01 Jan 2015 14:20:52 GMT
content-encoding: gzip
server: nginx/1.6.2
.....

Can we just have server: nginx without the version information as the default, without need to create nginx.conf.template on all applications. Am sure this is possible by setting

https://github.com/progrium/dokku/blob/master/plugins/nginx-vhosts/templates/nginx.conf
https://github.com/progrium/dokku/blob/master/plugins/nginx-vhosts/templates/nginx.ssl.conf

to have this value

server_tokens off;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions