The server_name keyword argument is not used as the
In one terminal run In another terminal run
The server_name should be used as the
In the docs for
|
Replies: 9 comments
|
What do you get for |
|
The value I get for |
|
Which means, I'm right. Have you tried setting it using CherryPy config? |
|
How should I set it? When I stepped through it was being set here https://github.com/cherrypy/cherrypy/blob/master/cherrypy/_cprequest.py#L897 And not overwritten. In https://github.com/cherrypy/cherrypy/blob/master/cherrypy/_cpwsgi.py#L310 |
|
When using CherryPy, you should use Why do you use underlying layer (which is Cheroot) after all? |
|
I was using from cherrypy.wsgiserver import CherryPyWSGIServer, HTTPServer
HTTPServer.version = "Siecje"before the So I should replace that with from |
|
Where do you specify |
|
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 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 |
|
Thanks setting |
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(orcheroot.server.HTTPServer) and passserver_namethere 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.serverconfig option like this.