[Mono-list] mod_mono and SSL

Gonzalo Paniagua Javier gonzalo@ximian.com
Wed, 26 May 2004 14:50:04 +0200


El mié, 26-05-2004 a las 07:49, DI Mag. Rainer Burgstaller escribió:
> Hi Gonzalo
> 
> thanks for the quick reply. I now changed it according to your template  
> but it still does not work. Although, it looks better now (i.e.  
> mod-mono-server.exe is now started) I still dont get a reply. It might be  
> important to mention that I am using apache2.
> 
> Here is my current configuration:
> 
> Listen 443
> <VirtualHost _default_:443>
>          ServerAdmin webmaster@foo.com
>          ServerName webmail.foo.com
> 
>          DocumentRoot /share/secure-web
>          SSLEngine on
> 
>          SSLCertificateKeyFile /etc/apache2/ssl/server.key
>          SSLCertificateFile /etc/apache2/ssl/server.crt
>          SSLCipherSuite bar
> 
>         Alias /mono "/share/secure-web/mono"
>          MonoApplications "/mono:/share/secure-web/mono"
>          MonoPath "/usr/local/lib/mono/1.0:/usr/local/lib/mono/2.0"

This path is incorrect. You should use /usr/local/lib.

>          MonoExecutablePath "/usr/local/bin/mono"
>          MonoServerPath "/usr/local/bin/mod-mono-server.exe"
>          SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
> 
>          <Directory "/share/secure-web">
>                  Options Indexes FollowSymLinks MultiViews
>                  AllowOverride None
>                  Order allow,deny
>                  allow from all
>          </Directory>
> 
>          <Directory /share/secure-web/mono>
>                  SetHandler mono
>          </Directory>
> 
> 
>          ErrorLog /var/log/apache2/secure-error.log
> 
>          # Possible values include: debug, info, notice, warn, error, crit,
>          # alert, emerg.
>          LogLevel warn
> 
>          CustomLog /var/log/apache2/secure-access.log combined
>          ServerSignature On
> </VirtualHost>
> 
> 
> When I do
> lynx https://localhost/mono
> 
> I get
> Alert!: Unexpected network read error; connection aborted.
> 
> Is there any way to get a log from mono? Maybe somethings crashing there?
> 
> any suggestions?

Mmm, until I add a --logfile option (i'll do soon), you can do:
        -Remove /tmp/mod_mono_server
        -As any user run:
                * umask 0000
                * mono [same parameters as mod_mono sets when running
                mod-mono-server]

This way you can see the output from mod-mono-server. Also, as always,
check the permissions.

-Gonzalo