? ????? mod_deflate? ???? Apache?? GZIP ?? ??? ?? ??? ?????. ?? ???, ?? ?? ??, ?? ?? ??? ??? ????? ???? ??? ? ??? ???? ?? ?????. ?? focu
mod_deflate? ???? Apache?? GZIP ??? ???? ??? ??????
GZIP ?? ?? (Apache? ?? ? mod_deflate
??)?? ????? /etc/apache2/apache2.conf
?? /etc/httpd/conf/httpd.conf
? ??? Apache ?? ??? ???? ?? ?????. ??? ??? ?? ? ???? ???? ?? ?? Apache ??? ??????. ??? ??? ???? ?? ?? ?? ??? ?????.
?? mod_deflate
????? ??? ??????. ?????? ?? ?? ????????. ????? ??? ???? ??? Apache ?? ??? ??? ?? ??? ???? ?? ?????.
<code class="apache">LoadModule deflate_module modules/mod_deflate.so</code>
mod_deflate.so
? ??? Apache ??? ?? ?? ?? ? ????. ??? ??? ? ??? <directory></directory>
?? <virtualhost></virtualhost>
?? ??? ?? ??? ???????. ??? ?? ?????.
<code class="apache"><ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript application/javascript application/json DeflateCompressionLevel 6 # Optional: Exclude specific file types # AddOutputFilterByType NO_DEFLATE image/jpeg image/png image/gif </ifmodule></code>
? ??? ??? ?????.
-
<ifmodule mod_deflate.c></ifmodule>
: ???mod_deflate
??? ? ???? ?????. -
AddOutputFilterByType DEFLATE ...
: ? ??? ?? ? ?? ??? ?????. ???? ???? ??? ?? ??? ??? ?????. ??? MIME ??? ????? ???? ?? ??? ????? ?????. -
DeflateCompressionLevel 6
: ?? ??? ?????. ? ?? ?? (1-9)? ??? ??? CPU ???? ? ????. 6? ??? ?? ??? ??? ????. ??? ?? ??? ?? ?? ??????. -
AddOutputFilterByType NO_DEFLATE ...
: ??? ?? ?? ? ??? (JPEG, PNG, GIF)? ?? ???? ?? ?? ??? ???? ??? ????. ?? ???? ???? ??? ?? ??? ??? ??? ? CPU ???? ?? ? ? ????.
??? ??? ?? ? ? Apache ??? ?? ???? ?? ??? ?????. Apache? ?? ????? ??? ?? ??? ?? ???? (? : sudo systemctl restart apache2
sudo apachectl restart
).
Apache?? mod_deflate? ???? GZIP ??? ????? ?? ??? ??????
mod_deflate
???? GZIP ??? ????? ? ??? ????? ?????? ?? ? ??? ??? ????? ??? ?? ??? ?????. ? ?? ?? ??? ???? ?????.
- ? ?? ???? ?? : ??? ??? ???? ??? ???? ???? ?? ?? ??? ?????.
- ??? ?? ?? : ???? ?? ? ???, ??? ?? ?? ? ?? ??? ??? ?????.
- ?? ?? ?? : ???? ?? ?? CPU ?? ??? ????? ??? ?? ??? ?? ? ?? ?? ?? ???? ??? ??? ?????. ?? ?? ?? ??? ?? ? ? ????.
- ? ?? ??? ?? : ? ?? ?? ??? ??? ???? ?? ?? ??? ?? ??? ????? ?? ?????.
?? ?? ??? ???? ??? ??, ?? ?? ? ??? ???? ???? ?? ??? ?? ????. ??? ????? GZIP ???? ?? ??? ??? ??? ??? ?? ? ??? ?? ? ? ????.
Apache ??? mod_deflate? ???? ???? ??? ???? ??? GZIP ?? ??? ????? ?????????
Apache ??? ???? ??? ???? ??? mod_deflate
?????? ? ?? ?? ?? ??? ??? ??? ?? ? ? ????.
-
mod_deflate
??? ????? ???? ???? ????. Apache ?? ??? ????mod_deflate
?????AddOutputFilterByType
???? ??? MIME ??? ???? ??? ??????. ???? ?? ??? ?????. - Apache? ?? ?? : ?? ??? ?? ? ??? ?? Apache? ?? ???? ?? ??? ??????.
- Apache ?? ?? ?? :
mod_deflate
? ??? ??? ?? Apache ?? ??? ??????. ? ??? ?? ??? ???? ?? ??? ?? ??? ??? ?????. ?? ??? ??? ???? ?? ???? ???? ????/var/log/apache2/error.log
??/var/log/httpd/error_log
? ?????. - ???? ??? ??? ??? : ????? ??? ?? (????? F12? ?? ???)? ???? ??? HTTP ??? ??????.
Content-Encoding
??? ?????. ??????gzip
???? ??? ??? ???? ????. - Mime ?? ?? : ????? MIME ??? ??? Apache? ?? MIME ???? ????? ??????. ??? ?? ?? ??? ??? ?? ? ? ????.
- ???? ?? ?? : ?? Apache ???
mod_deflate
? ?? ? ? ????. ?? ??? ????? ?????? ??? ????? ??????. - ?? ?? ?? : Apache ???? ???? ??? ????? ???? ? ??? ??? ??? ??????.
- ??? HTML ??? ??? : ??? HTML ??? ??? ???????. ??? ???? ??? ?? ??? ??? ????.
? ?? ?? ????? ??? ??? ??? ??? ?? Apache ??, ?? ?? ??? ??? ? ??? ?????? ?? ?? ???? ?? ??? ??? ??????.
Mod_deflate? ???? Apache ??? ?? ?? ?? ?? ????? ???? GZIP ??? ????? ???? ??? ?????
?, mod_deflate
???? ?? ?? ?? ?? ????? GZIP ??? ????? ?? ? ? ????. AddOutputFilterByType
???? ?? ? Apache ?? ???? <filesmatch></filesmatch>
, <directory></directory>
?? <location></location>
???? ?????? ?????.
? 1 : ???? ??? ?? ?? ?? ? ?? :
<code class="apache"><directory> AddOutputFilterByType NO_DEFLATE image/* </directory></code>
? ??? /var/www/html/images
???? ??? ???? ??? ?????.
?? 2 : ?? ??? ??? ?? ?? ?? ?? :
<code class="apache"><virtualhost> ServerName example.com DocumentRoot /var/www/example.com <filesmatch> AddOutputFilterByType DEFLATE text/html text/plain text/css application/x-javascript application/javascript </filesmatch> <filesmatch> AddOutputFilterByType NO_DEFLATE image/* </filesmatch> </virtualhost></code>
? ??? ??? ??? ?? ??? ????? example.com
?? ??? ??? HTML, TXT, CSS ? JS ?? ? ?????. /var/www/example.com
?? ?? ??? ??? ?? ?? ????.
? 3 : ?? ????? ?? ?? :
<code class="apache"><directory> AddOutputFilterByType DEFLATE text/html text/plain text/xml </directory></code>
?? ??? ?? ? ? Apache? ?? ??????. ??? ?? ??? ???? ???? ??? ????? ???? ?? ??? ?????. CPU ?? ??? ??? ??? ???? ?? ???? ???? ??? ??? ?? ??? ??? ? ????.
? ??? mod_deflate? ???? Apache?? GZIP ??? ??? ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

"ConnectionRefused"??? ???? ?? ???? ??? ????? ?? ??? ?? ???? ??? ??? ?? ??? ????? ????. 1. ?? ???? ?? ??? ???? ?? ???? ????? SystemCtlStatus ?? PSAUX? ???? ??? ??? ??? ?? ???? ?? ?? ???? ??????. 2. ??? ???? ?? ??? ???? NetStat ?? SS ??? ???? ???? ??? ??? ?? ??? ???? ??? ?? ?? ??? ???? ???? ?? ??????. 3. ??? ? ?? ?? ???? ?? ?? ??? ??? ? ??? ?? ??? ?? ? ???? ??? ?? ?? ??? ???? ??? ?? ???? ????? ????. 4. IP ?? ?? DNS ??? ??? ?? ??? ??? ? ????.

KeepAlive? ????? ?? ?? ???????? ???? ? ??? ??? ?? ???? ? ????. ????? ?? ??? ?? ?? ?? ?? ??? ??? ????? ??? ????. ???? ?? ?? ??? ?????, ???? ?????, ?? ???? ???? ???? ?? KeepAlive? ?????????. ?? ? ?? ???? ?? ?? ??? ?? ?? ???? ???? ?????? ? ??? ????? ???????. Apache, Nginx ?? ?? ?? ???? ?? ?? ??? ??? HTTP/2 ??? ??? ?????? ???????.

Toenableocspstaplinginapache, infermeetHeRequisitesandConfigUrethenecessaryDifives.first, inficationSpreate2.4.1ornewerwithMod_slenabled, openSSL0.9.8Hornewer, andhaveaValidsSlcertled.next

mod_proxy_wstunnel ??? Apache? WebSocket ?? ??? ????? ??? ???? ???? ???? ??? ????? ???????. 1. ?? mod_proxy ? mod_proxy_wstunnel ??? ????? Apache ???? ?? ??????. 2. ?? ??? ???? ?? virtualhost? ?? ? ? ws : // ?? wss : // ????? ??????. 3. ?? ??? ???? ????? ? ?? ??? ???? ???? ??? ?????. 4. ??? ???? ???? WSS? ?? ???? : // ssl/tls? ??? ? ??; 5. ???? ??, WSCAT ? ?? ??? ?? ???

??? ??? ?? ???? ?? ?? ??? ????????. 1. KeepAlive ?? ?? ?? : MaxKeepaliverequests? ????? 500 ???? ???? KeepAlivetimeout? 2 ~ 3 ?? ???? ?? ?? ??? ????. 2. MPM ?? ?? : Prefork ???? STARTHERVERS, MINSPARESERVERS, MAXSPARESERVERS ? MAXCLIENTS ??; ??? ??? ??? ?? ??? ?? ??? ???? ThreadSperchild ? MaxRequestWorkers? ??????. 3. ??? ?? ?? : ?? ????? ??? ???? ??

Apache? ?? ? ?? ????? ???? Linux ?????/var/www/html???. Apache ??? ?? ?? ?? ?????? ??? ???? ?????. ??? ??? ???? ?? ?? Ubuntu, Centos ? Fedora ??/var/www/html? ?? ???, MacOS (Homebrew ??)? ?????/usr/local/var/www?? Windows (XAMPP)? c : \ xampp \ htdocs???. ?? ??? ????? httpd.conf ?? apache2.conf? ?? Apache ?? ??? ????? phpinfo ()? p? ?? ? ????.

Apache Security? ???? ???? ?? ??, ?? ??, SSL ???, ?? ???? ??? ???????. 1. Mod_imap, Mod_info ?? ?? ???? ??? ???? ?? ??? ???? ???? ?? ??????. 2. ?? ???? ??? 755 ??? ???? ?? ??? ???? ???? ???? ???? ? ???? ??? ???????. 3. HTTPS? ?????,?? ??? ???? ????, ?? ??? ???? ? ?? ??? ???? ????????. 4. ??? ? ?? ??? ????? ???? Fail2Ban? ???? ??? IP? ???? ??? ???? IP ??? ??????.

HSTS? ????? HTTPS? ?? ? ???? ????? ??? ???? ? ??????. 1. Apache?? HTTPS? ?????? ?? HTTPS? ??? ?? ??? ?? ?? ?? .htaccess?? Strict-Transport-Security ?? ??? ???????. 2. ?? ?? (? : 31536000 ?)? ????? abitdomains ? preload ?? ??? ?????. 3. mod_headers ??? ????? ??? ??????. ??? ??? sudoa2enmodheaders? ???? Apache? ?? ??????. 4. ????? HSTSPRELOAD ??? ??? ? ??? ?? ???? ?? ???? HTTPS? ???? ?? ????????.
