[Mono-list] mod_mono

Giuseppe Greco giuseppe.greco@agamura.com
Fri, 27 Feb 2004 13:54:20 +0100


Hi all,

I've found the problem... look at the structure of
my file system:

/var
  +-- /ogdn
        +-- /pms
        |    + Login.aspx
        |    + MainForm.aspx
        |    + ...
        +-- /e-play
             + Login.aspx
             + MainForm.aspx
             + ...

To have my apps working, I've to start mod-mono-server
like this:

  mono /usr/bin/mod-mono-server.exe --root /var/ogdn/pms
    --applications /:.

instead of

  mono /usr/bin/mod-mono-server.exe --root /var/ogdn
    --applications /pms:./pms

... but I'd like to access the two apps like this:

  http://ogdn.agamura.com/pms

and

  http://ogdn.agamura.com/e-play

Furthermore, how can I make the Login.aspx the default
page? For instance, when accessing  http://ogdn.agamura.com/pms,
the Login.aspx page should be called automatically...

Thanks,
j3d.


On Fri, 2004-02-27 at 12:24, Giuseppe Greco wrote:
> Hi all,
> 
> I'm able to run the mono asp.net examples, but
> I've some troubles with my own asp.net apps...
> 
> 1. I've created a virtual host like this:
> 
>    <VirtualHost *>
>        ServerAdmin webmaster@agamura.com
>        DocumentRoot /var/ogdn
>        ServerName ogdn.agamura.com
>        ErrorLog logs/ogdn.agamura.com-error_log
>        CustomLog logs/ogdn.agamura.com-access_log combined
> 
>    </VirtualHost>
> 
>    Alias /pms/ "/var/ogdn/pms/"
> 
>    <Directory "/var/ogdn">
>       Options Indexes FollowSymLinks MultiViews
>       AllowOverride None
>       Order allow,deny
>       Allow from all
>    </Directory>
> 
> 2. I've installed my asp.net application in the
>    /var/odgn/pms directory
> 
> 3. I've started mod-mono-server
>    mono /usr/bin/mod-mono-server.exe --root /var/ogdn
>      --applications :.
> 
> 4. I've restarted httpd and changed /tmp/mod_mono_server
>    permissions
> 
> Well, as I try to access http://ogdn.agamura.com/pms/Login.aspx,
> I always get the "open-with/save-to-disk" dialog box...
> 
> I think the problem is that *.aspx files are not processed
> by the mono engine.
> 
> For sure I'm missing something...
> 
> Thanks,
> j3d.
>   
-- 
----------------------------------------
Giuseppe Greco

::agamura::

phone:  +41 91 604 67 65
mobile: +41 76 390 60 32
email:  giuseppe.greco@agamura.com
web:    www.agamura.com
----------------------------------------