LEFEVRE Damien .net

Monday 25 June 2007, 21:14

Compile DAV for Apache 1.3

wget http://mirror.eunet.fi/apache/httpd/apache_1.3.37.tar.gz
wget http://www.webdav.org/mod_dav/mod_dav-1.0.3-1.3.6.tar.gz
tar xzf apache_1.3.37.tar.gz
tar xzf mod_dav-1.0.3-1.3.6.tar.gz
cd apache_1.3.37
./configure
cd ../mod_dav-1.0.3-1.3.6
./configure --with-apache=../apache_1.3.37
make
make install
cd ../apache_1.3.37
./configure --activate-module=src/modules/dav/libdav.a <+ other options>
make
make install

Monday 25 June 2007, 18:02

Installing and Configuring Subversion for Debian

Draft:

http://svnbook.red-bean.com/en/1.0/ch06s04.html#svn-ch-6-sect-4.2
http://www.crium.univ-metz.fr/docs/devel/svn/index.html
http://www.crium.univ-metz.fr/docs/system/svn/

Thursday 21 June 2007, 12:32

Generating an SSL Certificate with Apache+mod_ssl

  • Generate key:

openssl genrsa -des3 -rand file1:file2:file3:file4:file5 -out server.key 1024

  • remove encryption or will ask for the passphrase every time apache reboots:

openssl rsa -in server.key -out server.pem

  • Generate CRS:

openssl req -new -key server.key -out server.csr

  • Generate the self-signed sertificate:

openssl x509 -req -days 60 -in server.csr -signkey server.key -out server.crt



Virtual host definition:

<VirtualHost _default_:443>
ServerAdmin webmaster@domain.com
DocumentRoot /usr/local/apache/share/htdocs
ServerName www.domain.com
ScriptAlias /cgi-bin/ /usr/local/apache/share/htdocs/cgi-bin/
SSLEngine on
SSLCertificateFile    /usr/local/apache/etc/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/etc/ssl.key/server.pem
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
CustomLog /usr/local/apache/var/log/ssl_request_log \
        "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>