[Mono-dev] Help rebuilding Xsp Mono.WebServer's Request.cs and ApplicationServer.cs

Andres G. Aragoneses knocte at gmail.com
Mon Mar 7 06:48:36 UTC 2016


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.
>




More information about the Mono-devel-list mailing list