[Mono-list] asp.net applications not pointing to correct location specified in virtualhost settings

Marek Habersack grendello at gmail.com
Thu Jun 21 04:44:44 EDT 2007


On Thu, 21 Jun 2007 13:44:37 +0530, "Jyoti Seth" <jyotiseth2001 at gmail.com>
scribbled:

> Hello,
Hello Jyoti,

[snip]
> When I add MonoDocumentRootDir "/srv/www/htdocs/test"  and
> MonoDocumentRootDir "/srv/www/htdocs/testjs" in their respective virtualroot
> it gives "File not found: test.aspx"
> 
> 
> <VirtualHost 192.168.X.X:80>
>    DocumentRoot /srv/www/htdocs/test
>    ServerName bit-dl-slmono
>    ServerPath /test/
>    LoadModule mono_module /usr/lib/apache2/mod_mono.so
>    MonoServerPath default /usr/bin/mod-mono-server2
>    AddMonoApplications default "/:/srv/www/htdocs/test"
>    <Directory "/srv/www/htdocs/test">
>     Order allow,deny
>     Allow from all
>     SetHandler mono
>     <IfModule mod_dir.c>
>         Directoryindex index.aspx
>     </IfModule>
>    </Directory>
> </VirtualHost>
> 
> <VirtualHost 192.168.X.X:81>
>    DocumentRoot /srv/www/htdocs/testjs
>    ServerName bit-dl-slmono
>    ServerPath /testjs/
>    LoadModule mono_module /usr/lib/apache2/mod_mono.so
>    MonoServerPath default /usr/bin/mod-mono-server2
>    AddMonoApplications default "/:/srv/www/htdocs/testjs"
>    <Directory "/srv/www/htdocs/testjs">
>     Order allow,deny
>     Allow from all
>     SetHandler mono
>     <IfModule mod_dir.c>
>         Directoryindex index.aspx
>     </IfModule>
>    </Directory>
> </VirtualHost>
> 
> Please help me to resolve this problem.
I would say it's because you have the same ServerName in both cases - mod_mono
picks up the first configuration only. Try changing one of the names and see if
it works then.

regards,

marek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070621/774f655c/attachment.bin 


More information about the Mono-list mailing list