[Mono-dev] mod_mono and mod_rewrite
Jesse Guardiani
jesse at guardiani.us
Mon Jul 17 00:12:55 EDT 2006
Jesse Guardiani wrote:
> Hello,
>
> I've been playing with mod_mono for a few days now, and it's pretty awesome being able
> to write ASP.NET code and run it on a linux machine.
>
> However, I wish it was a bit more PHP-like in the way it looks for code files to execute.
> I've studied and implemented the configuration recommended by the AutoHosting page:
> http://www.mono-project.com/AutoHosting
>
> But mod_mono doesn't seem flexible enough to fit into my extremely dynamic development
> hosting environment. With PHP and mod_rewrite, I can do amazing things where a URL like
> "jdg-tag.example.com" is mapped on the fly to the physical dir "~jdg/public_html-tag",
> and developers can create their own ~/public_html-* dirs and call them automatically
> without having to touch the Apache config or restart the server.
>
> This doesn't seem possible with mod_mono yet. Am I wrong?
>
> If not, I'd like to work on a solution. Does anyone have any arguments against doing
> so or any gotchas that might make the task impossible? Any suggestions to make things
> go more smoothly?
>
> Thanks!
I had a chance to debug the mod_mono code today and I determined that there is nothing
wrong with the code. Instead, the functionality I was looking for exists but is undocumented.
It looks like I forgot to mention in the above blurb that I need to run ASP.NET 2.0 code
so I can use partial classes and codebehind pages. That functionality is available for
AutoHosting, but you have to use the XXGLOBAL target, like so:
MonoAutoApplication enabled
MonoExecutablePath "XXGLOBAL" "/usr/bin/mono"
MonoServerPath "XXGLOBAL" "/usr/lib/xsp/2.0/mod-mono-server2.exe"
My ASP.NET 2.0 code now works anywhere on my web server, even behind mod_rewrite paths.
Can someone please document this functionality on the AutoHosting page?
Thanks!
--
Jesse Guardiani
Programmer/Sys Admin
jesse at guardiani.us
More information about the Mono-devel-list
mailing list