[Mono-aspnet-list] FastCgi Mono Server and Apache
kornelpal at gmail.com
Thu Sep 17 03:55:50 EDT 2009
> /home/user1/bin/mono-fcgi &
There is no need to try to spawn an fcgi process every time. cgi-fcgi
takes care of that if you use it according to
> # stdin is the socket handle
> exec env \
> /usr/local/bin/fastcgi-mono-server2 \
> /socket=unix:$SOCKET \
> /root=/home/user1/www/aspnet \
> /applications=/:/home/user1/www/aspnet \
> /logfile=/home/user1/bin/mono-fcgi.log \
> /loglevels=All \
> 2>> /home/user1/bin/mono-fcgi.err
You have to use env -i and pass all your relevant environment variables
explicitly because mono-fastcgi-server will otherwise fall back to CGI
environment variables that most likely will cause you trouble.
Also note that "stdin is the socket handle" is not the case in your
case. If you let cgi-fcgi spawn your fcgi server when it's not available
then cgi-fcgi will take care of socket creation as well.
If you still have problems, please also send your Apache configuration.
More information about the Mono-aspnet-list