Web server configuration

Apache Configuration

Encoding

The bins program will create automatically an .htaccess in the root directory of your album if the createHtaccess parameter is set to 1. This .htaccess is to be used by the Apache HTTP server to set the correct encoding of the HTTP header according the html pages of the album.

To allow Apache to use the .htaccess file, the following directive must be present in the Directory or VirtualHost of the Apache httpd configuration file :

	  AllowOverride All
      

Using BINS with PHP

If you want that the .html extension file to be interpreted by PHP, you have to edit the .htacces file described in Encoding section and add the following lines :

	AddHandler server-parsed .html
	AddType application/x-httpd-php .php .html
      

Thanks to Gilles Foucault for this Tip