[Pkg-mono-devel] Re: Error when adding a second application

Sam Liddicott sam@liddicott.com
Tue, 21 Sep 2004 22:49:40 +0100


Peter Magnusson wrote:
> I installed a simple ASP.NET application as described in 
> http://crippledcanary.nu/monoresources/howtos/HOWTO.libapache2-mod-mono 
> and it worked ok.
> 
> I now tried to add a second application called aspnet2 with the same files
> as i aspnet...
> 
> 	mkdir /var/www/aspnet2
> 	cp -R /var/www/aspnet/* /var/www/aspnet2/
> 	mono-server-admin.conf add --path=/var/www/aspnet2 --app=/aspnet2
> 
> The Apache server restarted Ok but when I try to browse 
> to http://localhost/aspnet I get a 404 error saying...
> 
> 	Server error in '/aspnet2' application
> 	--------------------------------------
> 	Connot find '/aspnet/index.aspx'
>  
> But it shouldn't be /aspnet2 application when the url stated /aspnet
> and the index.aspx file realy exists.
> Browsing http://localhost/aspnet2 works as it should and serves the files
> from the correct location (/var/www/aspnet2).
> 
> What can this be..

I think it is the <vhost>*</vhost> in debian.webapp

Change it to a literal vhost name as used in httpd.conf and it should 
all work fine

Sam