I've posted this on stackoverflow (http://stackoverflow.com/questions/40488879/mono-error-404-but-file-exists) because I feel this is more an mono issue. But will post here just in case others know a workaround.
Current setup is using Hiawatha within a FreeBSD Jail. I've installd mono, confirmed that the mono jail flag is enabled and all is happy. I've configured the server's vhost.
fastcgi-mono-server4 -v /socket=tcp:9000 /address=10.0.0.2/applications=/:. /root=/srv/www/domainuser/domain.tld/www/project2 /logfile=/srv/www/domainuser/domain.tld/logs/mono-server4.log /loglevels=All /printlog=True
FastCGIserver {
FastCGIid = ASP
ConnectTo = 10.0.0.2:9000
Extension = aspx
SessionTimeout = 5
}
VirtualHost {
...
UseFastCGI = ASP
}
As everything goes, this works fine. if I kill mono - I get "Service unavaible" which is expected. However when I try to execute an .aspx file I keep encountering:
Runtime error
The resource cannot be found.
Description: HTTP 404.The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Details: Requested URL: /rawr2/hello.aspx
Powered by Mono
Any one ever encountered this, could I also get clarifcation that the config file is correct?