在我的 CentOS mod_mono 2.8 (mono 2.8.1) 机器上安装 BlogEngine.NET 时遇到一些问题。
BlogEngine.NET 代码引用了一个名为“Bin”的文件夹。在查看目录的内容时,有一个名为“bin”的文件夹 - 已编译源代码的正常存放位置。
将文件夹重命名为“Bin”不是一种选择,因为这会导致单声道问题(它需要将文件夹命名为“bin”)。
我遇到了这个:http ://www.mono-project.com/IOMap
这表明 Mono 中的 IOMap 将使单声道“忽略”大小写敏感。
MONO_IOMAP=all
我从 su添加到我的环境中,它在我调用时出现env
但是,这似乎不起作用 - 它仍然区分大小写。
然后我为特定子域添加MonoSetEnv MONO_IOMAP=all
到我的 apache vhosts 文件中,但这仍然不起作用。
任何想法我做错了什么?我是盲目的,没有为除 root 之外的任何其他用户添加MONO_IOMAP=all
内容env
吗?
更新:我的 hosts.conf 这个网站看起来像:
<VirtualHost *:80>
ServerAdmin webmaster@host.net
DocumentRoot /home/host/www/host.net/blog
ServerName blog.host.net
ErrorLog /home/host/www/host.net/logs/blog.host.net-error.log
TransferLog /home/host/www/host.net/logs/blog.host.net-access.log
CustomLog /home/host/www/host.net/logs/blog.host.net-access_combined.log combined
DirectoryIndex index.html index.aspx
MonoServerPath blog.host.net "/usr/local/bin/mod-mono-server2"
MonoExecutablePath blog.host.net "/usr/local/bin/mono"
MonoDebug blog.host.net true
MonoSetEnv blog.host.net MONO_IOMAP=all
MonoApplications blog.host.net "/:/home/host/www/host.net/blog"
<Location "/">
Allow from all
Order allow,deny
MonoSetServerAlias blog.host.net
SetHandler mono
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
</Location>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript
</IfModule>
</VirtualHost>