Posts Tagged ‘apache’
Как увеличить скорость загрузки сайта, применив Gzip сжатие страниц.
edit .htaccess
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
# Or, compress certain file types by extension:
(more…)
Apache auth pam tacacs+
Встановлюємо mod_auth_pam.
В httpd.conf добавляємо.
LoadModule auth_pam_module libexec/apache22/mod_auth_pam.so
<Directory /home/cisco/>
AllowOverride All
AuthPAM_Enabled on
AuthPAM_FallThrough off
AuthUserFile /dev/null
AuthBasicAuthoritative Off
AuthName “Security forever!”
AuthType Basic
require valid-user</Directory>
Далі створюємо
/etc/tacplus.conf
Прописуємо в нього
<IP tacacs серверу> “comunity”
Створюємо
/etc/pam.d/httpd
Дабавляємо
auth sufficient pam_tacplus.so try_first_pass
(more…)