Eu precisava do suporte do MVC 4 (e básico .NET 4.5), então baixei o mono 3.0.2 e o implantei em uma instalação do lighttpd 1.4.28, junto com o xsp-2.10.2 (foi o mais recente que pude encontrar).
Depois de passar pelos tutoriais de configuração, consegui gerar o servidor fastcgi, mas todas as páginas são exibidas em branco. mesmo se eu for para URLs inexistentes ou arquivos .aspx diretos, recebo uma resposta HTTP 200 vazia.
O arquivo de log na depuração não mostra nada suspeito.
Aqui está o log:
[2012-12-12 15:15:38Z] Debug Accepting an incoming connection.
[2012-12-12 15:15:38Z] Debug Record received. (Type: BeginRequest, ID: 1, Length: 8)
[2012-12-12 15:15:38Z] Debug Record received. (Type: Params, ID: 1, Length: 801)
[2012-12-12 15:15:38Z] Debug Record received. (Type: Params, ID: 1, Length: 0)
[2012-12-12 15:15:38Z] Debug Read parameter. (SERVER_SOFTWARE = lighttpd/1.4.28)
[2012-12-12 15:15:38Z] Debug Read parameter. (SERVER_NAME = xxxx)
[2012-12-12 15:15:38Z] Debug Read parameter. (GATEWAY_INTERFACE = CGI/1.1)
[2012-12-12 15:15:38Z] Debug Read parameter. (SERVER_PORT = 80)
[2012-12-12 15:15:38Z] Debug Read parameter. (SERVER_ADDR = xxxx)
[2012-12-12 15:15:38Z] Debug Read parameter. (REMOTE_PORT = xxx)
[2012-12-12 15:15:38Z] Debug Read parameter. (REMOTE_ADDR = xxxx)
[2012-12-12 15:15:38Z] Debug Read parameter. (SCRIPT_NAME = /ViewPage1.aspx)
[2012-12-12 15:15:38Z] Debug Read parameter. (PATH_INFO = )
[2012-12-12 15:15:38Z] Debug Read parameter. (SCRIPT_FILENAME = /data/htdocs/ViewPage1.aspx)
[2012-12-12 15:15:38Z] Debug Read parameter. (DOCUMENT_ROOT = /data/htdocs)
[2012-12-12 15:15:38Z] Debug Read parameter. (REQUEST_URI = /ViewPage1.aspx)
[2012-12-12 15:15:38Z] Debug Read parameter. (QUERY_STRING = )
[2012-12-12 15:15:38Z] Debug Read parameter. (REQUEST_METHOD = GET)
[2012-12-12 15:15:38Z] Debug Read parameter. (REDIRECT_STATUS = 200)
[2012-12-12 15:15:38Z] Debug Read parameter. (SERVER_PROTOCOL = HTTP/1.1)
[2012-12-12 15:15:38Z] Debug Read parameter. (HTTP_HOST = xxxxx)
[2012-12-12 15:15:38Z] Debug Read parameter. (HTTP_CONNECTION = keep-alive)
[2012-12-12 15:15:38Z] Debug Read parameter. (HTTP_CACHE_CONTROL = max-age=0)
[2012-12-12 15:15:38Z] Debug Read parameter. (HTTP_USER_AGENT = Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11)
[2012-12-12 15:15:38Z] Debug Read parameter. (HTTP_ACCEPT = text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8)
[2012-12-12 15:15:38Z] Debug Read parameter. (HTTP_ACCEPT_ENCODING = gzip,deflate,sdch)
[2012-12-12 15:15:38Z] Debug Read parameter. (HTTP_ACCEPT_LANGUAGE = en-US,en;q=0.8)
[2012-12-12 15:15:38Z] Debug Read parameter. (HTTP_ACCEPT_CHARSET = ISO-8859-1,utf-8;q=0.7,*;q=0.3)
[2012-12-12 15:15:38Z] Debug Record received. (Type: StandardInput, ID: 1, Length: 0)
[2012-12-12 15:15:38Z] Debug Record sent. (Type: EndRequest, ID: 1, Length: 8)
config lighttpd:
server.modules += ( "mod_fastcgi" )
include "conf.d/mono.conf"
$HTTP["host"] !~ "^vdn\." {
$HTTP["url"] !~ "\.(jpg|gif|png|js|css|swf|ico|jpeg|mp4|flv|zip|7z|rar|psd|pdf|html|htm)$" {
fastcgi.server += (
"" => ((
"socket" => mono_shared_dir + "fastcgi-mono-server",
"bin-path" => mono_fastcgi_server,
"bin-environment" => (
"PATH" => mono_dir + "bin:/bin:/usr/bin:",
"LD_LIBRARY_PATH" => mono_dir + "lib:",
"MONO_SHARED_DIR" => mono_shared_dir,
"MONO_FCGI_LOGLEVELS" => "Debug",
"MONO_FCGI_LOGFILE" => mono_shared_dir + "fastcgi.log",
"MONO_FCGI_ROOT" => mono_fcgi_root,
"MONO_FCGI_APPLICATIONS" => mono_fcgi_applications
),
"max-procs" => 1,
"check-local" => "disable"
))
)
}
}
o mono.conf referenciado
index-file.names += ( "index.aspx", "default.aspx" )
var.mono_dir = "/usr/"
var.mono_shared_dir = "/tmp/"
var.mono_fastcgi_server = mono_dir + "bin/" + "fastcgi-mono-server4"
var.mono_fcgi_root = server.document-root
var.mono_fcgi_applications = "/:."
A raiz do documento para este servidor é / data / htdocs. Os arquivos asp.net residem lá.
Os registros de erro do lighttpd não mostram nada.
Toda ajuda é muito apreciada!