[packages/stikked] integrate htdocs/.htaccess to main apache config
glen
glen at pld-linux.org
Sat Mar 15 19:20:00 CET 2014
commit 9377341db351f4ee8f2e0e2efeab1161dcd0edd1
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Mar 15 20:19:19 2014 +0200
integrate htdocs/.htaccess to main apache config
apache.conf | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
---
diff --git a/apache.conf b/apache.conf
index 2545a8a..8643b1a 100644
--- a/apache.conf
+++ b/apache.conf
@@ -9,4 +9,35 @@ Alias /stikked /usr/share/stikked
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
+
+ FileETag MTime Size
+
+ <IfModule !mod_rewrite>
+ Options +FollowSymLinks
+ RewriteEngine on
+ RewriteBase /stikked
+ RewriteCond $1 !^(index\.php|static|favicon\.ico|robots\.txt)
+ RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
+ </IfModule>
+
+ <IfModule !mod_rewrite>
+ ErrorDocument 404 /index.php
+ </IfModule>
+
+ <IfModule mod_deflate>
+ SetOutputFilter DEFLATE
+ </IfModule>
+
+ <IfModule mod_expires>
+ 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>
</Directory>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/stikked.git/commitdiff/9377341db351f4ee8f2e0e2efeab1161dcd0edd1
More information about the pld-cvs-commit
mailing list