[Mono-aspnet-list] Nginx and mono results in 404 when accessing aspx files
mtranda
ma.trandafir at gmail.com
Mon Sep 6 08:42:10 EDT 2010
Ok, so nginx is running, and mono appears to be running as well (the fastCGI
module). The virtual website is responding fine and serves static files but
I get the standard "Server error" ASP.net 404 page when I try calling an
aspx file (hence mono is running and taking requests). Any ideas?
I've modified the nginx.config file accordingly (I hope) and since I do get
the 404 page it is probably configured properly so it might be a mono issue.
Thank you in advance.
configuration changes below (redacted):
nginx.config
server {
listen 80;
server_name ********;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /var/www/********/www/;
index index.html index.htm default.aspx Default.aspx;
fastcgi_index Default.aspx;
fastcgi_pass 127.0.0.1:9000;
include /etc/nginx/fastcgi_params;
}
fastcgi_params
fastcgi_param PATH_INFO ""; fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
The command line I start mono with is:
fastcgi-mono-server2 /applications=**:/:/var/www/**/www/
/socket=tcp:127.0.0.1:9000&
As I said, nginx connects to mono but it serves the standard ASP.NET "Server
Error" 404 page when accessing aspx files.
Tried testing with a simple Default.aspx page
--
View this message in context: http://mono.1490590.n4.nabble.com/Nginx-and-mono-results-in-404-when-accessing-aspx-files-tp2528331p2528331.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list
mailing list