This repository has been archived by the owner on Sep 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jamie Snape
committed
Jul 14, 2014
1 parent
7910a39
commit ac535d2
Showing
18 changed files
with
186 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
<IfModule mod_rewrite.c> | ||
# Zend rewrite rules | ||
RewriteEngine on | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule .* index.php | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
</IfModule> | ||
|
||
# Security: no folder fetching | ||
Options -Indexes | ||
|
||
# Configuration PHP | ||
php_flag magic_quotes_gpc off | ||
php_flag register_globals off | ||
php_flag short_open_tag on | ||
<IfModule deflate_module> | ||
SetOutputFilter DEFLATE | ||
BrowserMatch ^Mozilla/4 gzip-only-text/html | ||
BrowserMatch ^Mozilla/4.0[678] no-gzip | ||
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | ||
</IfModule> | ||
|
||
<IfModule php_module> | ||
php_flag magic_quotes_gpc off | ||
php_flag register_globals off | ||
php_flag short_open_tag on | ||
</IfModule> | ||
|
||
<IfModule mod_deflate.c> | ||
# Compress output | ||
SetOutputFilter DEFLATE | ||
BrowserMatch ^Mozilla/4 gzip-only-text/html | ||
BrowserMatch ^Mozilla/4.0[678] no-gzip | ||
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | ||
<IfModule rewrite_module> | ||
RewriteEngine on | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule .* index.php | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
Order Allow,Deny | ||
Deny from all | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
Order Allow,Deny | ||
Deny from all | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
Order Allow,Deny | ||
Deny from all | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
Order Allow,Deny | ||
Deny from all | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
Order Allow,Deny | ||
Deny from all | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
Order Allow,Deny | ||
Deny from all | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
<IfModule mod_expires.c> | ||
<FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$"> | ||
ExpiresActive On | ||
ExpiresDefault "access plus 10 years" | ||
</FilesMatch> | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
<IfModule expires_module> | ||
<FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$"> | ||
ExpiresActive On | ||
ExpiresDefault "access plus 10 years" | ||
</FilesMatch> | ||
</IfModule> | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
|
||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*\.(js|css))$ smartoptimizer/?$1 | ||
|
||
<IfModule mod_expires.c> | ||
RewriteCond %{REQUEST_FILENAME} -f | ||
RewriteRule ^(.*\.(js|css|html?|xml|txt))$ smartoptimizer/?$1 | ||
</IfModule> | ||
|
||
<IfModule !mod_expires.c> | ||
RewriteCond %{REQUEST_FILENAME} -f | ||
RewriteRule ^(.*\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico))$ smartoptimizer/?$1 | ||
</IfModule> | ||
<IfModule rewrite_module> | ||
RewriteEngine On | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*\.(js|css))$ smartoptimizer/?$1 | ||
|
||
<IfModule expires_module> | ||
RewriteCond %{REQUEST_FILENAME} -f | ||
RewriteRule ^(.*\.(js|css|html?|xml|txt))$ smartoptimizer/?$1 | ||
</IfModule> | ||
|
||
<IfModule !expires_module> | ||
RewriteCond %{REQUEST_FILENAME} -f | ||
RewriteRule ^(.*\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico))$ smartoptimizer/?$1 | ||
</IfModule> | ||
</IfModule> | ||
|
||
<FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$"> | ||
FileETag none | ||
FileETag none | ||
</FilesMatch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
php_flag zlib.output_compression Off | ||
php_flag output_buffering Off | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
<IfModule php_module> | ||
php_flag output_buffering Off | ||
php_flag zlib.output_compression Off | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
Order Allow,Deny | ||
Deny from all | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
Order Allow,Deny | ||
Deny from all | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
Order Allow,Deny | ||
Deny from all | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
Order Allow,Deny | ||
Deny from all | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
<FilesMatch "\.(ini|sql|php|phtml|csv)$"> | ||
Order allow,deny | ||
Deny from All | ||
</FilesMatch> | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> | ||
</FilesMatch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
Order Allow,Deny | ||
Deny from all | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
Order Allow,Deny | ||
Deny from all | ||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# MIDAS Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. | ||
|
||
<IfModule authz_core_module> | ||
Require all denied | ||
</IfModule> | ||
|
||
<IfModule !authz_core_module> | ||
Order deny,allow | ||
Deny from all | ||
</IfModule> |