1 <VirtualHost 127.0.0.1:80>
2 ServerAdmin root@127.0.0.1
3 DocumentRoot "/var/www/kyberia-wwwroot/"
5 ServerAlias www.localhost
6 ErrorLog /var/log/apache2/kyberia-error.log
7 CustomLog /var/log/apache2/kyberia-access.log combined
8 php_admin_flag safe_mode off
9 Alias /templates /var/www/kyberia-data/templates
10 Alias /images /var/www/kyberia-data/images
12 <IfModule mod_deflate.c>
13 AddOutputFilterByType DEFLATE text/html text/plain
14 DeflateBufferSize 32768
15 DeflateCompressionLevel 6
16 BrowserMatch ^Mozilla/4 gzip-only-text/html
17 BrowserMatch ^Mozilla/4\.0[678] no-gzip
18 BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
23 <VirtualHost 127.0.0.1:443>
24 DocumentRoot "/var/www/kyberia-wwwroot/"
26 ServerAlias www.localhost
27 ServerAdmin root@localhost
28 Alias /templates /var/www/kyberia-data/templates
29 Alias /images /var/www/kyberia-data/images
30 ErrorLog /var/log/apache2/kyberia-error.log
31 CustomLog /var/log/apache2/kyberia-access.log combined
32 php_admin_flag safe_mode off
34 # SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
35 # SSLCertificateFile /etc/ssl/certs/server.crt
36 # SSLCertificateKeyFile /etc/ssl/certs/server.pem
37 # SSLOptions +OptRenegotiate
38 # SetEnvIf User-Agent ".*MSIE.*" \
39 # nokeepalive ssl-unclean-shutdown \
40 # downgrade-1.0 force-response-1.0
43 <Directory "/var/www/kyberia-wwwroot>
53 RewriteCond %{HTTP_HOST} ^www.localhost
54 RewriteCond %{HTTPS} on
55 RewriteRule ^(.*) https://localhost/$1 [L,R=301,QSA]
57 RewriteCond %{HTTP_HOST} ^www.localhost
58 RewriteRule ^(.*) http://localhost/$1 [L,R=301,QSA]
60 RewriteCond %{REQUEST_URI} ^/_phpmyadmin/.*
61 RewriteRule ^(.+) - [L]
63 RewriteCond %{REQUEST_URI} ^/kbase.*
64 RewriteRule ^(.+) - [L]
66 RewriteCond %{REQUEST_URI} ^/~zden/.*
67 RewriteRule ^(.+) - [L]
69 RewriteCond %{REQUEST_FILENAME} !-f
70 RewriteRule ^id/([0-9]+)/?$ /nodes.php?node_id=$1 [L]
71 RewriteCond %{REQUEST_FILENAME} !-f
72 RewriteRule ^id/([0-9]+)/([0-9]+)/(.+)/?$ /nodes.php?node_id=$1&template_id=$2&magic_word=$3 [L]
73 RewriteCond %{REQUEST_FILENAME} !-f
74 RewriteRule ^id/([0-9]+)/(.+)/?$ /nodes.php?node_id=$1&template_id=$2 [L]
75 RewriteCond %{REQUEST_FILENAME} !-f
76 RewriteRule ^([^/]+)/?$ /nodes.php?node_name=$1 [L]
77 RewriteCond %{REQUEST_FILENAME} !-f
78 RewriteRule ^([^/]+)/([^/]+)/?$ /nodes.php?node_name=$1&template_id=$2 [L]
79 RewriteCond %{REQUEST_FILENAME} !-f
80 RewriteRule ^$ /nodes.php?node_id=1
82 Options Indexes FollowSymLinks
83 AllowOverride All #None