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

页面403 #54

Closed
cai823294620 opened this issue Mar 18, 2019 · 5 comments
Closed

页面403 #54

cai823294620 opened this issue Mar 18, 2019 · 5 comments

Comments

@cai823294620
Copy link

使用Nginx做的反代,打开页面却是403:Forbidden.

@huashengdun
Copy link
Owner

把反代的Nginx配置贴出来看看。

@cai823294620
Copy link
Author

cai823294620 commented Mar 19, 2019

sorry,我是adminset运维管理平台里封装的webssh,然后做的端口映射,用127.0.0.1:8888进行访问的,其实并没有使用Nginx。

当我使用本机启动wssh时。出现如下报错:

Traceback (most recent call last):
  File "/usr/local/bin/wssh", line 11, in <module>
    load_entry_point('webssh==1.0.3', 'console_scripts', 'wssh')()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python2.7/dist-packages/webssh/main.py", line 2, in <module>
    import tornado.web
  File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 205
    application: "Application",
               ^
SyntaxError: invalid syntax

@huashengdun
Copy link
Owner

huashengdun commented Mar 19, 2019

从上面报的错误来看,是由“/usr/local/lib/python2.7/dist-packages/tornado/web.py”的205行,SyntaxError 造成的。
你安装的tornado是什么版本?

@cai823294620
Copy link
Author

@huashengdun 现在更改为Centos7的版本后一切正常。谢谢

@huashengdun
Copy link
Owner

不客气。

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

2 participants