这几乎是一个wiki帖子,但是MonoSetEnv MONO_IOMAP=all
选项在Apache2 w / Ubuntu中对我不起作用,我所理解的是official doc。
<VirtualHost *:80>
ServerAdmin webmaster@localhost
MonoAutoApplication disabled
MonoSetEnv MONO_IOMAP=all
MonoDebug true
MonoApplications "/myapp:/pathto/myapp"
MonoServerPath "/usr/bin/mod-mono-server4"
...
似乎有一种新的语法来指定它。 MonoIOMAP all
如下所示:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
MonoAutoApplication disabled
MonoIOMAP all
MonoDebug true
MonoApplications "/myapp:/pathto/myapp"
MonoServerPath "/usr/bin/mod-mono-server4"
这是特定于Ubuntu还是mono-server4?
大多数帖子仍然提到MonoSetEnv
方式,我只发现this one related to an orchard CMS issue暗示我使用新语法......
Ubuntu Server 12.04.2 LTS
服务器版本:Apache / 2.2.22(Ubuntu)
Mono JIT编译器版本2.10.8.1(Debian 2.10.8.1-1ubuntu2.2)
单服务器4
答案 0 :(得分:1)
它在mod_mono (8)
手册页中记录如下:
"MonoIOMAP"
Takes alias name and a string of the same format and meaning as the MONO_IOMAP
environment variable (see the mono(1) manpage). The effect is that mod_mono performs
the same actions as mono runtime with MONO_IOMAP in effect, as well as that the
MONO_IOMAP variable with the specified value is exported in the backend environment.
This option is necessary when you're using MONO_IOMAP in your application and there
might be static files with mixed case names - in such case mod_mono attempts to open
the file directly and sends it using apache facilities.
Default value: none
MonoSetEnv
仍应有效,但mod-mono本身不会对该设置起作用,除非在环境中传递它。