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? GEOIP ??? ?? ?? ??? ??? ????? ?? ??? ??????. 1. MaxMind GEOIP ?????? ??; 2. nginxgeoip ??? ?????? ???????. 3. ?? ??? ?????? ?????????. 4. GEOIP_COUNTRY ??? ???? ??? ??????. ?? ??, ??? ??? ?? ?? ? ??? ? ????? ?? ??? 403 ??? ?????. GEOIP ??????? ?? Maxmind?? ???? ?? ?? ???? ?? ?? ?? ??? ??? ??? ? ????. ???? ? ? ?? ??? ??? ?????? ?? ??? ???? nginx ??? ????????. ???? ???? ?? ???? ???? ? ??? ??? ???? ?? ????. ??? ??? ?? ??? ? CDN? ??????? ???????.

Nginx? ??, ?? ?? ?? ????? ?? ??? ??? ?? ? ?? ??? ?? ????. 1. SystemD? ???? ?? ??? (? : ubuntu16.04, Debian8, Centos7)? ?? Sudosystemctlstartnginx, Sudosystemctlstopnginx, Sudosystemctlrestartnginx ? sudosystemctlreloadnginx? ?? ? ? ????. 2. Sysvinit? ???? ??? ???? ?? ??? ??? ?????? : SudoservicenginxStart,

ToHandleUrlewriTinginAReverseProxySetup, youmustalignbackendexpections withexternalurlsthroughprefixStriping, pathrewRiting, whenusingnginx, configureloctionswithtrailingslashesinproxy_passtoStriprrefixes, Appling/Applocp/Applock/Applocks, ConfigurelocationSwithTrailingStrailingStrailingStrailingSlashesinPROXY

Astrongssl/tlsciphersuitefornginxbalancessecurity, ??? ? ??? ?? ModernEndernEncryptionalGorithmsandforw ArdsecrecywhileadingDeprecatedProtocols.1.USETLS1.2ANDTLS1.3, disablingolderInsecureVersionsLikesslv3andtls1.0/1.1viassl_pr

? ??? ?? ?? ?????? ???? ?? ??? ????? ?? ????? ?? ??, ??, IP ?? ? ?? ??? ??? ? ????. ?????, ???? ??? ?????. 1. Nginx ?? Apache? ???? ??? ?? DeNyall ??? ???? ?? ?? ?? ??? ??? ?????. 2. ??? ?? ??? ??? ????, ?? ???? ??? ??? ????, ???? ?? ?? ?? ??; 3. IP ??? ?? ???? ???? ?? ???? ???? ??? ???? ?? ??? ?????. 4. CloudFlare, WordFence ? ?? ??? ?? ??? ?? ?? ????? ???? ??? ??? ??????. ? ??? ?? ????? ???? ??? ???? ?? ?? ? ????????.

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

????? HTTP ???? HTTPS ????? ????? "?? ???"??? ?????. ???? ??? ????. 1. ? ????? ?? ? ??? ??? ????? ??? ??? ?? ?? ??? ??? ??? ?? ??? ??????. 2. ??? ??? https ?? ?? ??? ??? http : //? https : //?? ????? //example.com/path/toto/resource.js ??? ??????. 3. CMS ?? ???????? ??? ?????? ??? ???? HTTP ??? ??? ???? SQL ??? ??????. 4. ??? ???? ??? ??? ?? ????? ???? ?? ??? ??? ???? HTTPS? ????? ?????.

1. Nginx ??? ??? ??????. ???? SystemCTL ??? SystemD? ?????. ???? ??? ? ??? ?????. inactivedead? ?? ????. ??? ???? ?? ?? ?????. 2. ?? ???? ??? ??? ???? ????? STARTSTOPRESTART? ???? ???? ?? ? ? ????. 3. Netstat ?? SS ??? ?? 80443 ??? ??????? ??????. ??? ??? ??? ??? ????? ??? ??? ?? ? ? ????. 4. Tailfvarlognginx ErrorLog ??? ???? ??? ?? ??? ?????. ???? ?? ??? ???? ?? ?? ?? ?? ? ?? ??? ??? ? ????.
