Re: [Mono-dev] Help rebuilding Xsp Mono.WebServer's Request.cs and ApplicationServer.cs
Thanks. That was exactly what I needed. After rebuilding and installing xsp, with some additional logging, this is what I found... With my current configuration settings, VPathToHost's Match function is always failing on line 130. --- return (vlength - 1 == local && this.vpath.Substring (0, vlength - 1) == vpath); --- The this.vpath is set to /rp.mydomainname.com/ and vpath is set to /mdn.aspx. SO the length check fails. The this.vpath variable is being set to /rp.mydomainname.com/ from the first parameter on /applications= switch command line (that starts up the fastcgi-mono-server4 instance). --- sudo fastcgi-mono-server4 /applications=/rp.mydomainname.com/:/var/www/mdn/ /socket=tcp:127.0.0.1:9000 /logfile=/var/log/mono/fastcgi.log /printlog=True /loglevels=All --verbose --stoppable --- The vpath variable is being set to the fastcgi_index variable from the nginx site config file. --- fastcgi_index mdn.aspx; --- I've tried changing the /rp.mydomainname.com/ and mdn.aspx settings to get Match function to succeed. But when it does succeed, it doesn't seem to find the mdn.aspx page. I still need to do more investigation. -- View this message in context: http://mono.1490590.n4.nabble.com/Help-rebuilding-Xsp-Mono-WebServer-s-Request-cs-and-ApplicationServer-cs-tp4667560p4667562.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Help rebuilding Xsp Mono.WebServer's Request.cs and ApplicationServer.cs
Turns out the fastcgi-mono-server4 applications parameter parser is expecting a different syntax than I was providing. This is what I was using for the command line... --- sudo fastcgi-mono-server4 /applications=/rp.mydomainname.com/:/var/www/mdn/ /socket=tcp:127.0.0.1:9000 /logfile=/var/log/mono/fastcgi.log /printlog=True /loglevels=All --verbose --stoppable --- But it turns out it needed at least 3 colon separated parameters and not as many backslashes to properly parse the vhost from the applications parameter. Now I'm using this... --- sudo fastcgi-mono-server4 /applications=rp.mydomainname.com:80::/var/www/mdn/ /socket=tcp:127.0.0.1:9000 /logfile=/var/log/mono/fastcgi.log /printlog=True /loglevels=All --verbose --stoppable --- The parameter before the first colon is the vhost (rp.mydomainname.com), the next parameter is the port (80), the next parameter is the vpath (blank or a / work for no vpath), and the last parameter is the physical path (/var/www/mdn/). Notice that the only slashes in the contents of the applications parameter are in the vpath and physical path portion. Now I'm having issues with the Hello World contents of the mdn.aspx, but that is problem for another day. -- View this message in context: http://mono.1490590.n4.nabble.com/Help-rebuilding-Xsp-Mono-WebServer-s-Request-cs-and-ApplicationServer-cs-tp4667560p4667564.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Any one can give me some help about mono running on IBM PASE?
Hi mono developers, Now I porting mono to IBM PASE, I have configured it and successfully compiled the mono runtime, But after I resolved some running time errors, now I blocked at one point. Details described as bellow: Mono runtime -> native code (generated from C#)- > Mono runtime -> invoke lib function (cored here) The specific code is this: Mini-runtime.c:2334 return runtime_invoke (obj, params, exc, info->compiled_method); in native code jump to mono_get_lmf_addr (runtime ), in mono_get_lmf_addr function invoke any lib function like printf() will lead to a segment fault. Anybody can give me some advices? Is it about calling convention? ABI on aix? And how to handle it? Kindly hope you can give me some hints. Thank you! Rocket Software, Inc. and subsidiaries ? 77 Fourth Avenue, Waltham MA 02451 ? +1 877.328.2932 ? +1 781.577.4321 Unsubscribe From Commercial Email - unsubscr...@rocketsoftware.com Manage Your Subscription Preferences - http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter_SubscriptionCenter.html Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy This communication and any attachments may contain confidential information of Rocket Software, Inc. All unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify Rocket Software immediately and destroy all copies of this communication. Thank you. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] Help rebuilding Xsp Mono.WebServer's Request.cs and ApplicationServer.cs
In general, try to avoid using slashes for command line options if the program accepts dashes, because the former can be confused with paths in Unix. On a side note, someone should replace the outdated Options class here (https://github.com/mono/xsp/blob/master/src/Mono.WebServer/Options/Options.cs) with a new version. On 03/07/2016 11:59 AM, TheCatcher wrote: Turns out the fastcgi-mono-server4 applications parameter parser is expecting a different syntax than I was providing. This is what I was using for the command line... --- sudo fastcgi-mono-server4 /applications=/rp.mydomainname.com/:/var/www/mdn/ /socket=tcp:127.0.0.1:9000 /logfile=/var/log/mono/fastcgi.log /printlog=True /loglevels=All --verbose --stoppable --- But it turns out it needed at least 3 colon separated parameters and not as many backslashes to properly parse the vhost from the applications parameter. Now I'm using this... --- sudo fastcgi-mono-server4 /applications=rp.mydomainname.com:80::/var/www/mdn/ /socket=tcp:127.0.0.1:9000 /logfile=/var/log/mono/fastcgi.log /printlog=True /loglevels=All --verbose --stoppable --- The parameter before the first colon is the vhost (rp.mydomainname.com), the next parameter is the port (80), the next parameter is the vpath (blank or a / work for no vpath), and the last parameter is the physical path (/var/www/mdn/). Notice that the only slashes in the contents of the applications parameter are in the vpath and physical path portion. Now I'm having issues with the Hello World contents of the mdn.aspx, but that is problem for another day. -- View this message in context: http://mono.1490590.n4.nabble.com/Help-rebuilding-Xsp-Mono-WebServer-s-Request-cs-and-ApplicationServer-cs-tp4667560p4667564.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list