Created
January 27, 2011 02:00
-
-
Save jShaf/797928 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # BEGIN SUGARCRM RESTRICTIONS | |
| RedirectMatch /sugarcrm.log.* http://crm.goodwill.org/log_file_restricted.html | |
| RedirectMatch /emailman.log http://crm.goodwill.org/log_file_restricted.html | |
| RedirectMatch /not_imported_(.*).txt http://crm.goodwill.org/log_file_restricted.html | |
| RedirectMatch /XTemplate/(.*)/(.*).php http://crm.goodwill.org/index.php | |
| RedirectMatch /data/(.*).php http://crm.goodwill.org/index.php | |
| RedirectMatch /examples/(.*).php http://crm.goodwill.org/index.php | |
| #RedirectMatch /include/(.*).php http://crm.goodwill.org/index.php | |
| #RedirectMatch /include/(.*)/(.*).php http://crm.goodwill.org/index.php | |
| RedirectMatch /log4php/(.*).php http://crm.goodwill.org/index.php | |
| RedirectMatch /log4php/(.*)/(.*).php http://crm.goodwill.org/index.php | |
| RedirectMatch /metadata/(.*)/(.*).php http://crm.goodwill.org/index.php | |
| #RedirectMatch /modules/(.*)/(.*).php http://crm.goodwill.org/index.php | |
| RedirectMatch /soap/(.*).php http://crm.goodwill.org/index.php | |
| RedirectMatch /emailmandelivery.php http://crm.goodwill.org/index.php | |
| # END SUGARCRM RESTRICTIONS | |
| php_value session.gc_maxlifetime 498000 | |
| <FilesMatch "^pub$|^search$"> | |
| ForceType application/x-httpd-php | |
| </FilesMatch> | |
| # enable error logging | |
| #php_flag error_reporting 1 | |
| php_flag display_errors Off | |
| php_flag log_errors On | |
| php_value error_log /tmp/php_errors.log | |
| #<FilesMatch "\.(xml|txt|css|js)$"> | |
| #Header set Cache-Control "max-age=17280, must-revalidate" | |
| #Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform" | |
| #Header set Pragma "no-cache" | |
| # | |
| #</FilesMatch> | |
| Header unset ETag | |
| FileETag None | |
| #<IfModule mod_deflate.c> | |
| ## Insert filter | |
| #SetOutputFilter DEFLATE | |
| # | |
| ## Netscape 4.x has some problems... | |
| #BrowserMatch ^Mozilla/4 gzip-only-text/html | |
| # | |
| ## Netscape 4.06-4.08 have some more problems | |
| #BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
| # | |
| ## MSIE masquerades as Netscape, but it is fine | |
| ## BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
| # | |
| ## NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 | |
| ## the above regex won't work. You can use the following | |
| ## workaround to get the desired effect: | |
| #BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html | |
| # | |
| ## Don't compress images | |
| #SetEnvIfNoCase Request_URI \ | |
| #\.(?:gif|jpe?g|png)$ no-gzip dont-vary | |
| # | |
| ## Make sure proxies don't deliver the wrong content | |
| #Header append Vary User-Agent env=!dont-vary | |
| #</IfModule> | |
| # | |
| ExpiresByType text/html "access plus 1 day" | |
| ExpiresByType text/css "access plus 1 day" | |
| ExpiresByType text/javascript "access plus 1 day" | |
| ExpiresByType image/gif "access plus 1 month" | |
| ExpiresByType image/jpg "access plus 1 month" | |
| ExpiresByType image/png "access plus 1 month" | |
| ExpiresByType application/x-shockwave-flash "access plus 1 day" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment