From: niekt0 Date: Sat, 23 Oct 2010 10:43:35 +0000 (+0200) Subject: Added apache config file X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=4664175fec6fa121c0cf7a54fc8c79ba1911517d;p=mirrors%2FKyberia-bloodline.git Added apache config file --- diff --git a/apache/kyberia.conf b/apache/kyberia.conf new file mode 100644 index 0000000..47790a7 --- /dev/null +++ b/apache/kyberia.conf @@ -0,0 +1,87 @@ + + 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_URI} ^/~zden/.* + RewriteRule ^(.+) - [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 + + Options Indexes FollowSymLinks + AllowOverride All #None + + Order allow,deny + Allow from all +