【发布时间】:2016-05-06 15:29:30
【问题描述】:
我在我的项目中使用cherrypy 和nginx。我的控制器部分如下所示:
@cherrypy.expose
@named(name="get_playlist", path="/get_playlist"):
def get_playlist(self):
我的 nginx 部分如下所示: 服务器{
listen 80;
server_name local-www.example.com;
location / {
proxy_pass http://example;
proxy_redirect default;
}
}
有没有办法从我的控制器中获取 local-www.example.com?
【问题讨论】: