[Mono-list] Power Hosting for Mono

Robert Jordan robertj at gmx.net
Fri Aug 11 08:09:30 EDT 2006


Hey,

met at uberstats.com wrote:
> I was wondering if anyone had played around with different ways of  
> hosting web services. I understand the apache/mod_mono/xsp setup, but  
> is there anything different, or better worth looking at. I don't have  
> any aspx pages, everything is compiled and merely exposed as a  
> service. Is it worth looking into running multiple xsp2 instances and  
> round-robbin proxying them via apache or another web server (cherokee,  
> lighttpd)?

System.Web.Services relies on and it's implemented as a handler
for System.Web aka ASP.NET. What you called "aspx pages" is in fact
another totally independent handler for ASP.NET.
If your application doesn't need aspx pages, the System.Web.UI
handler ("aspx pages") never gets called.

Moreover, you could trim off the ASP.NET config and disable
all handlers and modules that are not necessary for Web Services.

About proxying:

With apache you could use mod_proxy + mod_proxy_http.

Supposing your web services are published with XSP
under this URL:

	http://localhost/asp_app_name

The apache proxy configuration would look like:

ProxyPass        /apache_alias http://localhost/asp_app_name
ProxyPassReverse /apache_alias http://localhost/asp_app_name

You have to start each XSP instance manually, of course.

See also http://www.mono-project.com/FAQ:_ASP.NET#mod_mono_and_mod_proxy

Robert



More information about the Mono-list mailing list