[Mono-list] asp.net applications not pointing to correct location specified in virtualhost settings
Jyoti Seth
jyotiseth2001 at gmail.com
Thu Jun 21 05:35:29 EDT 2007
I have tried giving different server names but it is still pointing to the
first configuration only.
Thanks,
Jyoti Seth
On 6/21/07, Marek Habersack <grendello at gmail.com> wrote:
>
> 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 --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070621/c4aaed5d/attachment-0001.html
More information about the Mono-list
mailing list