Services/Web/Stikked

De TartareFR
Aller à la navigation Aller à la recherche

Installation

Téléchargement d'une archive depuis https://github.com/claudehohl/Stikked

Apache

Si l'utilisation de fichier .htaccess est désactivé, il faut écrire un petit fichier de configuration pour Apache

# This is a sample configuration for a stikked instance located under
# /var/www/stikked and exposed as http://thishost/stikked.

Alias /stikked /var/www/stikked/htdocs

<Directory "/var/www/stikked/htdocs">
        Options Includes FollowSymLinks
        AllowOverride None
        Order Allow,Deny
        Allow from all

        RewriteEngine on
        RewriteBase /stikked/
        RewriteCond $1 !^(index\.php|static|favicon\.ico)
        RewriteRule ^(.*)$ index.php?/$1 [QSA,L]

        SetOutputFilter DEFLATE
        FileETag MTime Size

        <IfModule !mod_rewrite.c>
                ErrorDocument 404 /index.php
        </IfModule>

        <IfModule mod_expires.c>
                ExpiresActive On
                ExpiresByType text/javascript "access plus 1 year"
                ExpiresByType application/x-javascript "access plus 1 year"
                ExpiresByType application/javascript "access plus 1 year"
                ExpiresByType text/css "access plus 1 year"
                ExpiresByType image/jpeg "access plus 1 year"
                ExpiresByType image/jpg "access plus 1 year"
                ExpiresByType image/gif "access plus 1 year"
                ExpiresByType image/png "access plus 1 year"
                ExpiresByType image/x-icon "access plus 1 year"
        </IfModule>

        #AuthType Basic
        #AuthName "Backend"
        #AuthUserFile /path/to/.htpasswd #create one with htpasswd -c .htpasswd username
        #Require user username

</Directory>