INSTALL
=======
Copy files to the directory of your choice (i.e. /var/www)
Apache2
~~~~~~~
Add the following to you Apache2 Vhost config:
DocumentRoot /var/www
Options FollowSymLinks
AllowOverride None
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options FollowSymlinks MultiViews +Includes
AllowOverride None
Order allow,deny
Allow from all
RewriteEngine on
RewriteRule ^/$ /index.shtml [env=LANG:de,env=SITE:index,PT]
RewriteRule ^/([^/]*)\.html$ /index.shtml [env=LANG:de,env=SITE:$1,PT]
RewriteRule ^/(de|en|si)/$ /index.shtml [env=LANG:$1,env=SITE:index,PT]
RewriteRule ^/(de|en|si)/([^/]*)\.html$ /index.shtml [env=LANG:$1,env=SITE:$2,PT]
RewriteRule ^/([vhrl])([1-9]|(1[0-3]))$ /essid.shtml [env=LANG:de,env=CHAN:$2,env=POL:$1,PT]
You might need to enable the Rewrite and Include Module.
Nginx
~~~~~
If you want to use nginx:
root /var/www;
ssi on;
location ~ ^/$ {
set $SITE "index";
set $LANG "de";
rewrite .* /index.shtml last;
}
location ~ ^/([^/]*)\.html$ {
set $SITE $1;
set $LANG "de";
rewrite .* /index.shtml last;
}
location ~ ^/(de|en|si)/?$ {
set $SITE "index";
set $LANG $1;
rewrite .* /index.shtml last;
}
location ~ ^/(de|en|si)/([^/]*)\.html$ {
set $SITE $2;
set $LANG $1;
rewrite .* /index.shtml last;
}
location ~ ^/([vhrl])([0-9]+)$ {
set $LANG "de";
set $CHAN $2;
set $POL $1;
rewrite .* /essid.shtml last;
}