mono 3.0.2 + xsp + lighttpd delivers empty page
Posted
by
Nefal Warnets
on Server Fault
See other posts from Server Fault
or by Nefal Warnets
Published on 2012-12-12T14:30:28Z
Indexed on
2012/12/13
11:06 UTC
Read the original article
Hit count: 672
I needed MVC 4 (and basic .NET 4.5) support so I downloaded mono 3.0.2 and deployed it on an lighttpd 1.4.28 installation, together with xsp-2.10.2 (was the latest I could find).
After going through the config tutorials I managed to get the fastcgi server to spawn, but all pages are served empty. even if I go to nonexistant urls or direct .aspx files I get an empty HTTP 200 response.
The log file on Debug shows nothing suspicious.
Here is the 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)
lighttpd config:
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"
))
)
}
}
the referenced mono.conf
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 = "/:."
The document root for this server is /data/htdocs. The asp.net files reside there.
lighttpd error logs show nothing.
Every help is greatly appreciated!
© Server Fault or respective owner