[Mono-aspnet-list] fastcgi-mono-server on different machine
Kornél Pál
kornelpal at gmail.com
Sat Mar 6 06:58:58 EST 2010
Hi,
When running a FastCGI server on another machine, problems most likely
occur because of different directory layout.
For maximal compatibility you should place your content on your
application server (server B) to exactly the same location as it would
be on the web server (server A).
This seems to be /home2/user/www/user.net/htdocs on server A
while seems to be /home/user/www on server B that are obviously different.
Note that however different paths on the two servers could be supported
by fastcgi-mono-server but I don't know how much infrastructure for that
is currently implemented. (It may be as easy as mapping paths rather
than relaying on SCRIPT_FILENAME for example.)
As a first step I would recommend you to make this setup work with
exatly the same paths then you can try to move the files on the
application server to a different location.
Kornél
jam wrote:
> Hello,
>
> I was trying to set my ASP environment on two machines:
> A - apache server
> B - fastcgi server
>
> On server B I compiled mono and xsp (2.6).
>
> I created simple index.aspx page and it works with xsp. But I want fastcgi..
>
> index.aspx is located on B server in directory /home/user/www
>
> I start fasctcgi-mono-server with command:
>
> exec env -i \
> PATH="/home/user/mono/bin:$PATH" \
> LD_LIBRARY_PATH="/home/user/mono/lib:$LD_LIBRARY_PATH" \
> TMP="/home/user/tmp" \
> MONO_SHARED_DIR="/home/user/tmp" \
> /home/user/mono/bin/fastcgi-mono-server2 /socket=tcp /port=4793 \
> /address=0.0.0.0 /applications=/:/home/user/www /root=/home/user/www \
> /printlog=True /loglevels=All /verbose=True
>
> On server A I have apache, I don't have access to conf file, I con only
> modify .htaccess file.
>
> In debug log on server A I can see that fastcgi-mono-server reads
> parameters, i.e.:
> DOCUMENT_ROOT = /home2/user/www/user.net/htdocs
> SCRIPT_FILENAME = /home2/user/www/user.net/htdocs/
>
> But when I'm trying to open page user.net I got:
>
>
> Server Error in '/' Application
> 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.
>
> Requested URL: /
>
>
> Can someone give me a hint what I'm missing? :-(
More information about the Mono-aspnet-list
mailing list