nginx?? ???? ??? ??? ??????
Nginx?? ???? ??? ????? Nginx ?? ??? ???????. ????? ???? ??? http
, server
?? location
??? ???? ?????. ??? ???? ??? ????.
- NGINX ?? ?? ?? : ???? ?? ?? NGINX ?? ??? ??
/etc/nginx/nginx.conf
? ???/etc/nginx/sites-available/
directory ?? ????. -
???? ?? ?? ?? : ??? ???? ?? ??? ???? ???? ??? ???????.
<code class="nginx">location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { expires 30d; add_header Cache-Control "public, no-transform"; }</code>
? ??? ????? ?? ?? ? ??? ?????? ??? ?? 30 ? ??? ?????. ??? ?? ??? ???? ??
expires
??? ??????. -
?? ??? : nginx? ?? ???? ?? ?? ??? ?? ??? ???????.
<code class="sh">sudo nginx -t</code>
-
Nginx? ?? ?? : ???? ???? Nginx? ?? ???? ?? ??? ??????.
<code class="sh">sudo systemctl restart nginx</code>
??
<code class="sh">sudo service nginx restart</code>
? ??? ???? Nginx? ?? ??? ?? ???? ??? ?????.
Nginx? ???? ??? ????? ?? ??? ?????
Nginx? ???? ???? ??? ????? ? ?? ??? ??? ????.
- ???? ?? : ????? ?? ?? ??? ?????? ??? ??? ??? ?? ??? ?? ????? ??? ???? ??? ???? ? ????.
- ? ?? ????? ?? : ?? ? ??? ???? ?? ?? ?? ???? ?????? ?????? ????? ??? ??? ? ?? ??? ??? ?????.
- ??? ?? : ?? ??? ??? ????? ????? ?? ???? ??? ?? ???? ??? ??? ??? ? ????.
- ?? ? ?? : ??? ?? ??? ??????? ???? Nginx ??? ? ?? ?? ??? ???? ? ?? ????? ????? ???? ?? ? ? ????.
- ? ?? SEO ?? : ??? ??? ?? ?? ????? ???? ??? ? ?? ????? ???? ?? ???? ?? ?? ??? ?? ? ? ????.
????? Nginx? ???? ???? ??? ????? ?? ? ?? ????? ??, ??? ? ?? ?? ????? ??? ?????.
Nginx?? ???? ??? ???? ????? ??? ??? ? ?????
Nginx?? ???? ??? ???? ????? ????? ??? ?? ? ? ????.
-
HTTP ?? ?? ?? :
curl
? ?? ?? ?? ???? ??? ??? ???? ?? ??? HTTP ??? ??????.<code class="sh">curl -I https://example.com/static/image.jpg</code>
Cache-Control
?? ???Expires
. Nginx ??? ?? ???? ??? ???? ??? ?????. - ???? ??? ?? ?? : ?????? ? ???? ?? ??? ??? ???? ??? ?? ? ?? ???? ?? ?????. ?? ??? ?? ??? ???????. ?? ? ???? ??? ?? ?? ??? ??? ???? ???? ?? ??? ?? "200 OK (Disk Cache)"?? "304 ???? ??"? ?? ?? ??? ??????.
- ?? ????? ??????? : ?? ??? ?? ?????? ???? ??? ???? ???? ?????.
- ?? ?? ?? : ??? ?? CSS ?? ????? ?? ?? ??? ?? ?? ? ?? ????? ? ??? ?? ?? ??? ??????. ????? ?? ???? ?? ? ??? ???? ?? ??? ???? ?????.
? ??? ???? Nginx ???? ???? ??? ???? ????? ??? ? ????.
Nginx?? ?? ?? ??? ??? ?? ??????????
NGINX?? ?? ?? ??? ???? ???? ??? ?? ?? ??? ???? ??? ?? ????. ???? ??? ??? ????.
- ?? ?? : ?? ???? ?? ???, CSS ? JavaScript ??? ?? ?? ??? ?? ? ?? ?? (? : 30 ? ??)? ???? ??? ?? ??? ???? ?? ? ?? ?? ??? ?? ???? ? ? ????.
- ?? ??? : ???? ?? ?? ?? ???? ?? ? ?? ???? ??? ?? ???? ?? ??? ? ? ??? ?? ??? ?? ?? ?? ? ?? ???? ? ?? ????.
- ?? ?? : ?? ?? (? :
style.v1234.css
)?? ??? ???? ???? ? ???? ?? ????? ? ?? ?? ??? ??? ? ????. ?? ?? ??? ???? ?? ?? ?? ?? ? ?????????. - ?? ???? : ? ???? ?? ? ??? ?? ???? ????? ???????. ??? ??? ?? (? : ?? ??? ?? ?? ??? ?? ?? ?????)? ???? ?? ?? ?? ??? ???? ? ?? ????.
- ??? ?? ?? :?? ??? ????? ????? ? ??? ??? ???? ???? ?? ?? ??? ??? ???? ??? ?? ??? ?? ?? ?? ??? ???????.
????? ? ??? ?? ???? ??? ??? ??? ? ?? ?? ??? ???? ?? ? ??? ?? ??? ????? ?? ???? ?? ????.
? ??? nginx?? ???? ??? ??? ??????? ?? ?????. ??? ??? 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)

Nginx? "ToomyopenFiles"??? ???? ????? ??? ?? ????? ?? ????? ??? ???? ?????. ???? ??? ????. 1. Linux ???? ??? ? ?? ??? ???? nginx? ?? ?? ??? ????? /etc/security/limits.conf?? ?? ???? ?????. 2. ?? ???? ????? nginx? worker_connection ?? ???? ??? ? ??? ??????. 3. ??? ?? ?? ???? ??? ?????. fs.file-max, /etc/sysctl.conf edit ? ?? ??? ??????. 4. ?? ? ??? ???? ????? Open_L ??? ?? ???? ?? ?? ??? ????.

?? Nginx ?? ??? ????? /etc/nginx/nginx.conf (ubuntu/debian, centos/rhel), /usr/local/etc/nginx/nginx.conf (Macoshomebrew) ?? ?? ?? ?? ?? ?? conf ????? ????. nginx-t, ps-ef | grepnginx? ???? ? ?? ??? ??? ?? ?? ??? ??? ??? ????? ??/-namenginx.conf ? locatenginx.conf? ???? ??? ?????. ?? ?? ???? ?? ??, ??? ?? ? HTTP ??? ???? ???? ??? ??? ??????.

GZIP ??? ????? ? ??? ??? ??? ????? ????? ??? ???? ? ????. 1. Apache ??? .htaccess ??? ??? ???? mod_deflate ??? ????? ??? ???????. 2.nginx? ??? ?? ??? ???? Gzipon? ???? ?? ??, ?? ?? ? ?? ??? ???????. 3. ??? ??? ? ??? ?? ?? ???? ??? ??? ?? ??? ??? ??? ? ????. ???? ?? ??? ???? ?? ?? ?? ?? ?? ?? ? MIME ?? ??????????.

stub_status ??? nginx? ??? ?? ?? ??? ?????. ?????, ???? ??? ?????. 1. ?? ?? ??? ?; 2. ?? ? ??? ? ?, ? ?? ?? ? ? ? ?? ?; 3. ??, ???? ???? ?? ?. ??? ??? ????? Nginx-V ??? ??-with-http_status_module ?? ??? ????? ??? ? ????. ????? ?? ?? ??? ?? ????? ??????. ????? ?? ??? ?? ??? ???? ??? ??? ???????. ?????, ??? ??? ?? Nginx ???? ?????? ?? ???? ???????. ???? ??? ?? ???? ?? ????. ??? ?? ???? ????? ??? ? ??? ??? ? ???? ???? ?? ? ? ????.

"?? ? ???"??? ???? ?? ???? ?? ???? ?? ?? ?? IP ??? ????? ?????. ???? ??? ??? ????. 1. ??? ????? ?? ????. 2. ?? ???? ??? ????? (? : ?? 80? ???? Apache? ?? Nginx? ???? ??). 3. ?? ?? ??? ?? ??? ???? ????. ?? ? ??? ?? ??? ??? ? ????. Sudolsof-I : 80 ?? SudolnetStat-Tulpn | grep : 80 Linux/MacOS; Windows?? NetStat-ano | FindStr : 80? ???? PID? ??????. ???? ??? ????. 1. ?? ?? ?? (? : SUDOS

HSTS? ????? ??? HTTPS ? ????? Strict-Transport-Security ?? ??? ???? ????. ?? ??? ??? ????. 1.nginx ?? ??? Add_header ???? ?????. 2. Apache? ?? ?? ?? .htaccess? ?? ???? ?????. 3.iis? web.config? ??? ??? ?????. ? ???? HTTPS? ??? ???? ?? ???? ?? ?? (?? ??), ?? ? ??? (?? ???? ???), ?? ?? (?? ??) ? Prereload? HSTSpreload ??? ?????? ?? ?????.

NginxPlus? ?? ?? Nginx? ?? ???? ?????? ??? ?? ????? ?? ??? ??? ?? ?????. 1. ?? ?, ?? ?? ? ?? ?? ??? ?? ? ??? ?? ??? ??? ????? ?????. 2. ?? ?? ??, ?? ?? ??? ???? ? ?? ??? ?? ???? ??? ??? ?????. 3. ?? ?? ?? (??? ??)? ???? ??? ??? ??? ??? ??? ????? ????????. 4. ?? ?? ????? ???? ???? ?? ???? ?? ???? ?? ??? ??????. 5. ??? ??? ??? ?? ??? ????? ?? ?? ?? ? ??? ?? ??? ?????. 6. API? ?? ?? ?? ????? ???? Kubernetes ?? ?? ???? ??? ??? ? ????. 7. ??

A/B ???? NGINX? Split_Clients ??? ?? ?? ? ? ???, ?? ??? ?? ??? ?? ?? ??? ?? ??? ???? ?????. ?? ??? ??? ????. 1. Split_Clients ??? ???? 50%A ? 50%B? ?? HTTP ??? ??? ? ??? ?????. 2. $ cookie_jsessionid, $ remote_addr ?? $ arg_uid? ?? ??? ?? ?? ???? ??? ???? ??? ??? ????? ?????????. 3. ?? ?? ?? ??? IF ??? ?? ?? ???? ??????. 4. ??? ?? ?? ??? ?? ??? ??? ???? ??? ?????. 5. ???? ??? ? ??? ?? ??
