ServerAdmin root@127.0.0.1 DocumentRoot "/var/www/kyberia-wwwroot/" ServerName localhost ServerAlias www.localhost ErrorLog /var/log/apache2/kyberia-error.log CustomLog /var/log/apache2/kyberia-access.log combined php_admin_flag safe_mode off Alias /templates /var/www/kyberia-data/templates Alias /images /var/www/kyberia-data/images AddOutputFilterByType DEFLATE text/html text/plain DeflateBufferSize 32768 DeflateCompressionLevel 6 BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html DocumentRoot "/var/www/kyberia-wwwroot/" ServerName localhost ServerAlias www.localhost ServerAdmin root@localhost Alias /templates /var/www/kyberia-data/templates Alias /images /var/www/kyberia-data/images ErrorLog /var/log/apache2/kyberia-error.log CustomLog /var/log/apache2/kyberia-access.log combined php_admin_flag safe_mode off # SSLEngine on # SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL # SSLCertificateFile /etc/ssl/certs/server.crt # SSLCertificateKeyFile /etc/ssl/certs/server.pem # SSLOptions +OptRenegotiate # SetEnvIf User-Agent ".*MSIE.*" \ # nokeepalive ssl-unclean-shutdown \ # downgrade-1.0 force-response-1.0 Order allow,deny Deny from all RewriteEngine on RewriteCond %{HTTP_HOST} ^www.localhost RewriteCond %{HTTPS} on RewriteRule ^(.*) https://localhost/$1 [L,R=301,QSA] RewriteCond %{HTTP_HOST} ^www.localhost RewriteRule ^(.*) http://localhost/$1 [L,R=301,QSA] RewriteCond %{REQUEST_URI} ^/_phpmyadmin/.* RewriteRule ^(.+) - [L] RewriteCond %{REQUEST_URI} ^/kbase.* RewriteRule ^(.+) - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*) /nodes.php/$1 [L] # RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^id/([0-9]+)/?$ /nodes.php?node_id=$1 [L] # RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^id/([0-9]+)/([0-9]+)/(.+)/?$ /nodes.php?node_id=$1&template_id=$2&magic_word=$3 [L] # RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^id/([0-9]+)/(.+)/?$ /nodes.php?node_id=$1&template_id=$2 [L] # RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^([^/]+)/?$ /nodes.php?node_name=$1 [L] # RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^([^/]+)/([^/]+)/?$ /nodes.php?node_name=$1&template_id=$2 [L] # RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^$ /nodes.php?node_id=1 # # #base36 # RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^k/([0-9a-zA-Z]+)/?$ /nodes.php?node_kid=$1 [L] # RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^k/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)/(.+)/?$ /nodes.php?node_kid=$1&template_kid=$2&magic_word=$3 [L] # RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^k/([0-9a-zA-Z]+)/(.+)/?$ /nodes.php?node_kid=$1&template_kid=$2 [L] Options Indexes FollowSymLinks AllowOverride All #None Order allow,deny Allow from all