Cherokee 跳过运行 asp.net MVC 4.0 的 fastcgi-mono-server4
我的问题是,当我使用 cherokee 和 mono 运行 API 时,cherokee 会跳过 fastcgi-mono-server 并表示未找到 404,而不是从 mono-server 返回数据。
我按照cherokee的这个教程在mono下运行asp.net: http://www.cherokee-project.com/doc/cookbook_mono.html
我使用控制台中的下一个命令启动 fastcgi-mono-server4:
sudo fastcgi-mono-server4 /applications=/myapplication/:/srv/www/htdocs/myapplication/,/test/:/srv/www/htdocs /test/ /socket=tcp:127.0.0.1:9000 /stopable=TRUE /filename=/temp/cherokee-mono.socket /logfile=/home/aamarber/mono-server4.log
当我将其放入浏览器中时: localhost /myapplication 它说 HTTP 500 名称控制器的值必须是非空字符串;没关系,因为 myapplication 是一个 api。
但是如果我输入 localhost/myapplication/websites/getwebsites 它会显示 404 错误。
我能做些什么?谢谢!
My problem is that when I run an API with cherokee and mono, cherokee skips the fastcgi-mono-server and says 404 not found, instead of returning the data from mono-server.
I followed this tutorial of cherokee to run asp.net under mono:
http://www.cherokee-project.com/doc/cookbook_mono.html
And I launch the fastcgi-mono-server4 with the next command from the console:
sudo fastcgi-mono-server4 /applications=/myapplication/:/srv/www/htdocs/myapplication/,/test/:/srv/www/htdocs/test/ /socket=tcp:127.0.0.1:9000 /stopable=TRUE /filename=/temp/cherokee-mono.socket /logfile=/home/aamarber/mono-server4.log
When I put this in the browser: localhost/myapplication it says HTTP 500 The value for the name controller must be a non-empty string; that's OK, because myapplication is an api.
But if I put localhost/myapplication/websites/getwebsites it says the 404 error.
What can I do? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论