Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 2|回復: 0

Handling requests: Nginx vs Apache

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 19:29:01 | 顯示全部樓層 |閱讀模式
本帖最後由 luckymoni123456 於  19:34 編輯

Normally, you only need to use htaccess files. Use You do not have permission to access the primary server configuration file. The impact of htaccess. In terms of web server performance .htaccess. It is a text file that you place on your server to configure certain settings. This file can be used to perform operations such as redirecting URLs, changing a file's access level, and enabling security features. However, use htaccess. Will affect the performance of your web server. Every time a URL or archive with htaccess is requested. After transmission, Apache must scan the entire directory tree from the requested URL or file to the server root directory and then load them.

Next, Apache must process these archives and reconfigure itself for each directory Uruguay Phone Number List in this sequence. For a WordPress website, this can get very complicated. A typical WordPress website may have hundreds of requests from different directories. For example, a typical WordPress website might have multiple requests from the /wp-content/uploads/yyyy/mm directory, often from different month directories. Static resources are also called from /wp-content/themes/parent-theme and /wp-content/themes/child-theme, which include JavaScript archives, CSS, and images. For each resource, Apache must scan the entire directory tree to find the required settings.



Analysis shows that a typical WordPress configuration (common for shared hosting sites) can contain 42 separate executions and 249 htaccess archive searches. Yes So use htaccess. Will slow down your website. If possible from htaccess . Avoid it, just do it. If using htaccess. are mandatory, please keep their number to a minimum and use them only when necessary. Mods When comparing Nginx and Apache, another reason for Apache’s popularity is its dynamic modding system. Modules in Engine X and Apache allow users to extend the functionality of web servers. Apache helps users install modules after starting the web server and then enable or disable them as needed.

回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|自動贊助|z

GMT+8, 20:11 , Processed in 0.031472 second(s), 18 queries .

抗攻擊 by GameHost X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回復 返回頂部 返回列表
一粒米 | 中興米 | 論壇美工 | 設計 抗ddos | 天堂私服 | ddos | ddos | 防ddos | 防禦ddos | 防ddos主機 | 天堂美工 | 設計 防ddos主機 | 抗ddos主機 | 抗ddos | 抗ddos主機 | 抗攻擊論壇 | 天堂自動贊助 | 免費論壇 | 天堂私服 | 天堂123 | 台南清潔 | 天堂 | 天堂私服 | 免費論壇申請 | 抗ddos | 虛擬主機 | 實體主機 | vps | 網域註冊 | 抗攻擊遊戲主機 | ddos |