2010-12-15 7 views
1

Probleme mit der Installation von BlogEngine.NET auf meiner CentOS mod_mono 2.8 (Mono 2.8.1) Box.Mono IOMAP case sensitivity

Der BlogEngine.NET-Code verweist auf einen Ordner namens "Bin". Wenn man sich den Inhalt des Verzeichnisses ansieht, gibt es einen Ordner namens 'bin' - der normale Ort für die kompilierte Quelle.

Das Umbenennen des Ordners in 'Bin' ist keine Option, da dies zu Mono-Problemen führt (der Ordner muss als 'bin' bezeichnet werden).

ich quer durch das kam: http://www.mono-project.com/IOMap

Welche dass iomap in Mono schlägt mono Fall Empfindlichkeit 'ignore' machen wird.

Ich habe MONO_IOMAP=all zu meinem env, von su, und es erscheint, wenn ich env anrufen, aber dies scheint nicht zu funktionieren - es ist immer noch Groß-und Kleinschreibung.

Ich fügte dann MonoSetEnv MONO_IOMAP=all meiner Apache VHOSTS Datei für eine bestimmte Subdomain hinzu, und das funktioniert immer noch nicht.

Irgendwelche Ideen, was ich falsch mache? Bin ich blind und füge MONO_IOMAP=all zu env für andere Benutzer als root nicht hinzu?


Update: Meine hosts.conf für diese Seite wie folgt aussieht:

<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> 

Antwort

2

Try MonoSetEnv mit Server-Alias, zum Beispiel meine Konfiguration von virtuellen Host gesetzt sieht wie folgt aus:

DocumentRoot /var/www/my.domain.com/ 
ServerName my.domain.com 

MonoServerPath mydomaincom /usr/local/bin/mod-mono-server4 
MonoSetEnv mydomaincom MONO_IOMAP=all 
AddMonoApplications mydomaincom "/:/var/www/my.domain.com/" 

<Location /> 
    Allow from all 
    Order allow,deny 
    MonoSetServerAlias mydomaincom 
    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> 
+0

Arbeitete nach httpd Neustart. Danke – Darbio

+0

Für mich auch laufen WCF Webservice mit MonoSetEnv alias MONO_STRICT_MS_COMPLIANT = yes – Fanda

1

Ich konnte das lösen, indem ich einfach MonoSetEnv MONO_IOMAP=all zu meiner httpd.conf Konfigurationsdatei hinzufügte (gewöhnlich gelegen bei /etc/apache2/httpd.conf).

MonoSetEnv MONO_IOMAP=all