added image for first node and modified mkdirectory script
[mirrors/Kyberia-bloodline.git] / apache / kyberia.conf
1 <VirtualHost 127.0.0.1:80>
2 ServerAdmin root@127.0.0.1
3 DocumentRoot "/var/www/kyberia-wwwroot/"
4 ServerName localhost
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
11
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
19 </IfModule>
20
21 </VirtualHost>
22
23 <VirtualHost 127.0.0.1:443>
24 DocumentRoot "/var/www/kyberia-wwwroot/"
25 ServerName localhost
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
33 # SSLEngine on
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
41 </VirtualHost>
42
43 <Directory "/var/www/kyberia-wwwroot>
44
45 <Files ~ "\.inc$">
46 Order allow,deny
47 Deny from all
48 </Files>
49
50
51 RewriteEngine on
52
53 RewriteCond %{HTTP_HOST} ^www.localhost
54 RewriteCond %{HTTPS} on
55 RewriteRule ^(.*) https://localhost/$1 [L,R=301,QSA]
56
57 RewriteCond %{HTTP_HOST} ^www.localhost
58 RewriteRule ^(.*) http://localhost/$1 [L,R=301,QSA]
59
60 RewriteCond %{REQUEST_URI} ^/_phpmyadmin/.*
61 RewriteRule ^(.+) - [L]
62
63 RewriteCond %{REQUEST_URI} ^/kbase.*
64 RewriteRule ^(.+) - [L]
65
66 RewriteCond %{REQUEST_URI} ^/~zden/.*
67 RewriteRule ^(.+) - [L]
68
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
81
82 Options Indexes FollowSymLinks
83 AllowOverride All #None
84
85 Order allow,deny
86 Allow from all
87 </Directory>
This page took 0.299648 seconds and 4 git commands to generate.