[Mono-list] mod_mono and SSL
Gonzalo Paniagua Javier
gonzalo@ximian.com
Wed, 26 May 2004 01:57:23 +0200
El mar, 25-05-2004 a las 09:22, DI Mag. Rainer Burgstaller escribió:
> Hi
>
> I have been looking in the lists archives and could not find a clear
> answer if I can run mod_mono now under my SSL domain or not. I have
> mod_mono successfully running on debian under my http site. But when I
> remove it from the http site and put the lines into the virtualhost
> section of the https site it does not work.
>
>
> here is a snippet of my virtual host configuration.
>
> SNIP
>
> <VirtualHost _default_:443>
> ServerAdmin webmaster@dummy.com
> ServerName secure.dummy.com
>
> DocumentRoot /www/secure-web
> SSLEngine on
>
> SSLCertificateKeyFile /etc/apache2/ssl/server.key
> SSLCertificateFile /etc/apache2/ssl/server.crt
> SSLCipherSuite bla...
>
> <Directory />
> Options FollowSymLinks
> AllowOverride None
> </Directory>
> <Directory "/www/secure-web">
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> allow from all
> </Directory>
>
> Alias /mono "/www/mono"
> MonoApplications "/mono:/www/mono"
>
>
> <Location /mono>
> SetHandler mono
> </Location>
> ...
> ENDSNIP
>
> So I would like to know:
>
> a) does mono under SSL work at all? (maybe I am trying in vain for now)
It works, but our System.Web is unaware of it.
> b) if yes, whats wrong?
I never tried using SSL before, but it worked right away. I installed
libapache-mod-ssl and configure apache to work with ssl. The lines i
added to my httpd.conf are:
----
Listen 443
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
SSLEngine on
SSLCertificateFile /etc/apache/ssl.crt/server.crt
SSLCertificateKeyFile /etc/apache/ssl.key/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
Alias /samples "/tmp/samples"
MonoApplications "/samples:/tmp/samples"
MonoPath "/home/gpanjav/go-mono/install/lib"
MonoExecutablePath "/home/gpanjav/go-mono/install/bin/mono"
MonoServerPath "/home/gpanjav/go-mono/install/bin/mod-mono-server.exe"
<Directory /tmp/samples>
SetHandler mono
</Directory>
</VirtualHost>
</IfModule>
---
-Gonzalo