using .asmx using lighttpd and mono fastcgi(使用 .asmx 使用 lighttpd 和单声道 fastcgi)
问题描述
我已将 Web 服务部署到运行 lighttpd 和 fastcgi-mono-server2 的 ubuntu 服务器..asmx 页面加载正确,但是当我测试该方法时,我得到了 404.
I have deployed a web service to a ubuntu server running lighttpd and fastcgi-mono-server2. The .asmx page loads correctly but when I test the method I get a 404.
我的网络服务称为 Import.asmx,我的方法称为下载,404 回来说 import.asmx/download 不存在
My web service is called Import.asmx and my method is called download and the 404 comes back saying import.asmx/download does not exist
使用 xsp2 同样的服务也能完美运行
Using xsp2 the same service works perfectly
我认为这与/download 如何由 lighttpd/fastcgi 提供服务有关,但无法解决如何修复它.
I assume it is something to do with how the /download gets served by lighttpd/fastcgi but cannot work out how to fix it.
推荐答案
我也遇到了同样的问题.原来是在找不到资产时服务 404 的默认指令.删除了以下行:
I had the very same issue. Turned out to be default directive for serving 404 when not finding assets. Removed the following line:
try_files $uri $uri/ =404;
并在/etc/nginx/fastcgi_params 中添加 PATH_INFO
作为 fastcgi 参数:
And add PATH_INFO
as fastcgi param in /etc/nginx/fastcgi_params:
fastcgi_param PATH_INFO $fastcgi_path_info;
这为我解决了问题.希望对您有所帮助.
That fixed it for me. Hope it helps.
这篇关于使用 .asmx 使用 lighttpd 和单声道 fastcgi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 .asmx 使用 lighttpd 和单声道 fastcgi


基础教程推荐
- JSON.NET 中基于属性的类型解析 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01