Last active
October 28, 2017 02:40
-
-
Save levnhub/12c0202661beaf749b912c575c3fe5cc to your computer and use it in GitHub Desktop.
PHP Server Tweaks
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
// .htaccess | |
php_value max_input_vars 3000 | |
php_value max_execution_time 120 | |
// Indexes | |
DirectoryIndex myindex.php | |
Options +Indexes | |
// Password | |
AuthType Basic | |
AuthName "Please login" | |
AuthUserFile /var/www/zupport/data/www/zupport.ru/.htpasswd | |
Require valid-user | |
// Terminal | |
htpasswd -nb username password | |
// php.ini | |
max_input_vars = 3000; | |
max_execution_time = 120; | |
// wp-config.php | |
define('WP_MEMORY_LIMIT', '256M'); | |
/* Это всё, дальше не редактируем. Успехов! */ | |
// .htaccess fonts | |
# Add correct content-type for fonts | |
AddType application/vnd.ms-fontobject .eot | |
AddType application/x-font-ttf .ttf | |
AddType application/x-font-opentype .otf | |
AddType application/x-font-woff .woff | |
AddType image/svg+xml .svg | |
# Compress compressible fonts | |
AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-opentype image/svg+xml | |
ExpiresActive on | |
# Add a far future Expires header for fonts | |
ExpiresByType application/vnd.ms-fontobject "access plus 1 year" | |
ExpiresByType application/x-font-ttf "access plus 1 year" | |
ExpiresByType application/x-font-opentype "access plus 1 year" | |
ExpiresByType application/x-font-woff "access plus 1 year" | |
ExpiresByType image/svg+xml "access plus 1 year" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment