[Mono-devel-list] mod_mono/xsp and external javascript files
Gonzalo Paniagua Javier
gonzalo at ximian.com
Thu Dec 16 08:41:44 EST 2004
On Fri, 2004-12-17 at 01:48 +1300, Phillip Hitchcock wrote:
> so i should be able to have .js files under the monoapplication path?
>
> the apache document root is /srv/www/htdocs/
>
> i have a mono application diffined at
>
> Alias /Btools/ /srv/www/htdocs/Btools
> MonoApplications "/Btools:/srv/www/htdocs/BTools/"
>
> <Directory /srv/www/htdocs/BTools>
> setHandler Mono
> ....
> </Directory>
>
> if i have the js files at
> /srv/www/htdocs/BTools/javascript/foo.js
>
> i get 500 returns in the apache access_log on the request for the js file.
>
> if i have it outside the monoapplication path it works fine...
>
>
> the setHandler mono under the directory tag bothers me... do i need to
> alter this somehow to make it only handle specific files? and let apache
> deal with the rest?
You can use AddHandler instead of SetHandler, but that's a workaround
for the problem you're having, not a solution.
Oh, btw, http://www.go-mono.com/docs/ is run by mod_mono and it has
javascript files et al...
> any help would be greatly appreciated
Go to mod_mono.c and #define DEBUG (there's a #undef right now).
Compile, install and you'll get more information on the actual error. If
that's not enough, check 'ps aux' to see the command line used to run
mod-mono-server.exe and run it by yourself in a console (apache user
must have write permissions to the unix socket created). Then try again
and you might get more info there.
-Gonzalo
More information about the Mono-devel-list
mailing list