From 4664175fec6fa121c0cf7a54fc8c79ba1911517d Mon Sep 17 00:00:00 2001 From: niekt0 Date: Sat, 23 Oct 2010 12:43:35 +0200 Subject: [PATCH] Added apache config file --- apache/kyberia.conf | 87 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 apache/kyberia.conf 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 + -- 2.30.2