Apache与mod_mono - 无法连接到mod-mono-server

时间:2015-02-23 11:22:44

标签: linux apache mono mod-mono

我试图用apache运行mod_mono,但我无法让它工作。我需要运行一个需要单声道运行的Web服务(asmx)。

现在我正试图运行mono附带的测试项目,试着让mod_mono运行apache。

到目前为止,我无法让它工作,而且我在apache日志文件中遇到了一些错误。

我能够解决错误,它会说它无法找到单声道目录,但现在我只是没有任何其他信息 -

[error] Failed to connect to mod-mono-server after several attempts to spawn the process.

我在/ var / www / html / test

中有来自mono的测试项目

这是我的mod_mono.conf

<IfModule !mod_mono.c>
    LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so
</IfModule>

<IfModule mod_headers.c>
    Header set X-Powered-By "Mono"
</IfModule>

AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .vb
AddType application/x-asp-net .master
AddType application/x-asp-net .sitemap
AddType application/x-asp-net .resources
AddType application/x-asp-net .skin
AddType application/x-asp-net .browser
AddType application/x-asp-net .webinfo
AddType application/x-asp-net .resx
AddType application/x-asp-net .licx
AddType application/x-asp-net .csproj
AddType application/x-asp-net .vbproj
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx

MonoAutoApplication enabled
MonoDebug false
MonoServerPath "/opt/mono/bin/mod-mono-server4"
MonoUnixSocket "/tmp/.mod_mono"
<Location "/Mono">
        Order deny,allow
        Deny from all
        Allow from all
        SetHandler mono-ctrl
</Location>

我也补充说(因为它在conf.d中不应该这样,但是以防万一)

Include /etc/httpd/conf.d/mod_mono.conf

0 个答案:

没有答案