[Mono-list] mod_mono virtual hosts with virtual directories

Gonzalo Paniagua Javier gonzalo.reply.to.the.list.iam.subscribed@ximian.com
Tue, 10 Aug 2004 16:56:34 -0400


On Tue, 2004-08-10 at 13:45, Andrew Arnott wrote:
> I have a .webapp file that describes a web site that I need to add a
> virtual directory to.  I am using the latest version of Apache.  I
> don˙t know how to use the XML format to get it to work.  
> 
>  
> 
> Here is my fhss.webapp file:
> 
> <apps>
> 
>             <web-application>
> 
>                         <name>History</name>
> 
>                         <vhost>somehost.history.gov</vhost>
> 
>                         <vport>80</vport>
> 
>                         <vpath>/</vpath>
> 
>                        
> <path>/mnt/Novell/FHSS_Share/History/Web/Main</path>
> 
>             </web-application>
> 
> </apps>
> 
>  
> 
> This works well enough, but now I need to add a virtual directory,
> called ´facultyˇ to the web app.  The faculty folder will be at a
> totally different physical location on the hard disk on the server.  I
> need Mono to run the ASPX pages from there as if they belonged to the
> root web app.  

I would add an Alias for /faculty that points to the physical directory
and then a symbolic link in .....Web/Main called 'faculty' that points
at the physical directory where all the faculty stuff is in. This way
apache will find the files and mod-mono-server too and you don't need to
enable following symbolic links in apache.

-Gonzalo