[Mono-list] asp.net applications not pointing to correct location	specified in virtualhost settings
    Jyoti Seth 
    jyotiseth2001 at gmail.com
       
    Thu Jun 21 04:14:37 EDT 2007
    
    
  
Hello,
There is a problem setting different MonoDocumentRootDir for different
virtual hosts (same ip but different ports).
The following settings work fine for the html pages
I have test.html at both locations (/srv/www/htdocs/test and
/srv/www/htdocs/testjs). When I use http://localhost:80/test.html it
displays the content of test.html placed at /srv/www/htdocs/test location
and with http://localhost:81 /test.html it displays the content of
test.htmlplaced at /srv/www/htdocs/testjs location
But when I try to access .aspx it always point to /srv/www/htdocs/test" with
both the ports 80,81.
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.
Thanks,
Jyoti Seth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070621/9307c098/attachment.html 
    
    
More information about the Mono-list
mailing list