Skip to content

server_name is not being used as the Server header #45

Answered by webknjaz
Siecje asked this question in Q&A
Discussion options

You must be logged in to vote

Well, this depends on whether you need CherryPy framework or you just need Cheroot WSGI/HTTP layer. If you can/want to drop CherryPy dependency, it should be or to use cheroot.wsgi.Server (or cheroot.server.HTTPServer) and pass server_name there directly.

If you use CherryPy, I'm not sure what you are trying to achieve. Can you show me your code example or at least explain your intentions when using custom WSGI Server?

If using normal CherryPy setup, it should be possible to set response.headers.server config option like this.

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by webknjaz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #45 on September 17, 2020 23:38.