BlogEngine.NET을 내 CentOS mod_mono 2.8 (모노 2.8.1) 상자에 설치하는 데 문제가 있습니다.모노 IOMAP 대소 문자 예 :
BlogEngine.NET 코드는 'Bin'폴더를 참조합니다. 디렉토리의 내용을 살펴보면, 컴파일 된 소스가 상주 할 정상적인 장소 인 'bin'이라는 폴더가 있습니다.
폴더 이름을 'Bin'으로 바꾸는 것은 옵션이 아니므로 모노 문제 (폴더를 'bin'이라고 부름)가 필요합니다.
나는이 건너 온 : 모노에서 IOMap 모노를 만들 것을 제안 http://www.mono-project.com/IOMap는 대소 문자 구분을 '무시'.
내 env, su에서 MONO_IOMAP=all
을 추가했는데 env
을 호출하면 나타납니다. 그러나 이것은 작동하지 않는 것처럼 보입니다. - 여전히 대소 문자를 구분합니다.
다음 특정 서브 도메인에 대한 내 apache vhosts 파일에 MonoSetEnv MONO_IOMAP=all
을 추가했는데 여전히 작동하지 않습니다.
내가 잘못하고있는 아이디어가 있습니까? 내가 장님이고 env
에 MONO_IOMAP=all
을 root가 아닌 다른 사용자에게 추가하지 않습니까?
업데이트 :
<VirtualHost *:80>
ServerAdmin [email protected]
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>
httpd restart 후 작업. 감사합니다 – Darbio
나를 위해 MonoSetEnv 별칭을 사용하여 WCF 웹 서비스를 실행하십시오. MONO_STRICT_MS_COMPLIANT = yes – Fanda