~vcs-imports/clansuite/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# .htaccess-template for Clansuite
#
# Apache Configuration File
# httpd.apache.org/docs/2.2/mod/quickreference.html
#
# SVN: $Id: htaccess-full.txt 5284 2011-05-12 00:20:57Z vain $

# (1) Rename "htaccess.txt" to ".htaccess"
# (2) If you don't need htaccess, then DELETE IT. It just slow's down Webserver processing.
# (3) Redirect all Requests to the domain (http://www.domain.xy) to index.php

DirectoryIndex index.php

# Allow Symlinks
Options +FollowSymLinks

# Disallow Index-Listings
Options -Indexes

# (4) General and PHP.ini Settings
SetEnv    TZ                    Europe/Berlin
<IfModule mod_php5.c>
php_value magic_quotes_runtime  "0"
php_value magic_quotes_gpc      "0"
php_value register_globals      "Off"
php_value output_buffering      "1"
php_value output_handler        ob_gzhandler

# XDebug Remote Debugger
php_value xdebug.remote_enable  "On"
php_value xdebug.remote_host    "localhost"
php_value xdebug.remote_port    "9000"
php_value xdebug.remote_handler "dbgp"

# XDebug Profiler
#php_value xdebug.profiler_enable  "1"
#php_value xdebug.profiler_output_dir "c:\temp"
</IfModule>

# Exlude .svn files (in case you are fetching directly from svn to the webserver)
<Files .htaccess, .svn>
    Order allow, deny
    Deny from all
</Files>

# (6) Apache2 with "LoadModule mod_deflate"
#     for output compression of the following specific file-content-types:

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
</IfModule>

# (7) Apache2 with "LoadModule mod_rewrite"
#     for Rewrite Engine and Rewrite Rules (for Apache)

<IfModule mod_rewrite.c>

# (7a) Turn Rewrite Engine on

       RewriteEngine on
       # uncomment for better debugging of rewrite rules
       #RewriteLog /var/log/apache2/clansuite-rewrite.log

# (7b) Set the Base for the Rewrite Engine (which is the path to your /Clansuite Directory)
#      Examples:
#      RewriteBase /YourClansuiteDirectory
#      RewriteBase /

        #RewriteBase /

#  (7c) Rewrite Rules

        # if it's not a file AND it's not a directory
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d

        # disable rewrite for css, images, javascript, archives and pdf,txt
        #RewriteCond %{REQUEST_FILENAME} !\.(?:png|gif|jpeg|jpg|pdf|php|js|ico|txt|css|rar|zip|tar\.gz)$

        # route all non-ressource/file/dir requests to index.php
        #RewriteRule ^(.*).(.*)? index.php?mod=$1&action=$2

	    # all requests are redirected the frontcontroller (index.php)
	    RewriteRule ^(.*)$ index.php [QSA,L]

</IfModule>

# (8) Apache2 with "LoadModule mod_expires"
#     Removed Etag + Smaller Header for image, javascript, css files with cache lifetime 1 year+

<IfModule mod_expires.c>
    <FilesMatch "\.(ico|gif|jpg|jpeg|png|swf|css|js|html?|xml|txt)$">
		ExpiresActive On
		ExpiresDefault "access plus 1 years"
	</FilesMatch>
</IfModule>

# (9) Apache2 with "LoadModule mod_headers"
#     Turns off ETags (check for newer version of file)
#     Forces webbrowser to rely on Cache-Control and Expires headers

<IfModule mod_headers.c>
    Header unset ETag
    Header unset Last-Modified
</IfModule>
<FilesMatch "\.(ico|gif|jpg|jpeg|png|swf|css|js|html?|xml|txt)$">
	FileETag none
</FilesMatch>

# (10) Apache2 with "LoadModule mod_gzip"
#     Compresses your Content

<IfModule mod_gzip.c>
  mod_gzip_on Yes
  mod_gzip_dechunk Yes
  mod_gzip_item_include file \.(html?|txt|xml|css|js|php|pl|gif|jpg|jpeg|png|swf)$
  mod_gzip_item_include handler ^cgi-script$
  mod_gzip_item_include mime ^text/.*
  mod_gzip_item_include mime ^application/x-javascript.*
  mod_gzip_item_exclude mime ^image/.*
  mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

# (11) If you have trouble uploading larger files, increase the maximum file size.
#
#<IfModule mod_php5.c>
#  php_value upload_max_filesize -1
#  php_value post_max_size 512M
#  php_value memory_limit -1
#  php_value max_input_time -1
#  php_value max_execution_time 0
#  php_value error_reporting 5
#</IfModule>