LEFEVRE Damien .net

< 1 2 3 4 5 6 7 8 >

Monday 26 November 2007, 23:04

Force web browser encoding to UTF-8

I had to work on a website in Finnish for a friend. With my server in France there was some issues with the encoding detection and the page was full of weird signs.

To fix this I created a .htaccess file to the website root directory and added the following line to force all the .html files to UTF-8

AddCharset UTF-8 .html

That's it! The web browser goes to UTF-8 encoding automatically.

Wednesday 18 July 2007, 21:31

Missing codecs for Totem

After one of the latest update Totem couldn't play any media complaining about missing codecs. That did the trick for me:

apt-get install totem-xine
apt-get install libxine1-ffmpeg 

Wednesday 11 July 2007, 00:28

Trac installation guide

If you have a web server with svn installed (see Subversion (SVN) server installation guide ) you might like to explore the different functionalities of Trac .

Trac is a great web interface running on the top of a subversion which considerably helps the project management, bug tracking...

Here are some of the features:

  • Internal wiki
  • iCalendar, for synchronization
  • Timeline, revision historic
  • Source browser with syntax coloration
  • RSS feeds
  • Possibility to add ticket, bug reporting and tracing
  • Internal search engine
  • Revision comparisons
  • File attachment
  • Integrated help
  • ....

With this article, we complete the server we started to configure in Subversion (SVN) server installation guide .

[view]

Tuesday 10 July 2007, 13:54

Subversion (SVN) server installation guide

Here comes a simple installation guide for Linux Debian servers. Most of the configuration should be the same for other Linux distributions but there could be some differences in the paths.

Configurations are different if you are using Apache 1 or Apache 2 and you won't be able to have the same functionalities and access methods.

Web server administrators are slow to move to Apache2 and most of us wish to keep Apache 1.3 on their production server. It is possible to use both Apache at the same time.

When running both version of apache, Apache 1.3 is the front-end server providing SSL encryption (https) and proxy server. Apache 2 become a dedicated SVN server listening on a specific port.

[view]

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>

< 1 2 3 4 5 6 7 8 >