亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

首頁 運維 Nginx 怎麼使用Nginx反向代理與proxy_cache快取搭建CDN伺服器

怎麼使用Nginx反向代理與proxy_cache快取搭建CDN伺服器

May 12, 2023 pm 05:43 PM
nginx cdn proxy_cache

碰到問題:
行動用戶訪問web伺服器www.osyunwei.com很慢
解決方案:
1、在行動機房放置一臺nginx反向代理伺服器
2、透過網(wǎng)域名稱dns智慧解析,所有行動用戶造訪www.osyunwei.com時解析到nginx反向代理伺服器
3、nginx反向代理伺服器與web伺服器之間採用專線連線
說明:
1、網(wǎng)路伺服器
線路:電信
ip:192.168.21.129
網(wǎng)域:www.osyunwei.com
2、nginx反向代理伺服器
線路:移動
系統(tǒng):centos 6.2
ip:192.168.21.164
vi /etc/hosts #編輯,在檔案最後新增下面一行
192.168.21.129 www. osyunwei.com
3、客戶端
線路:移動
系統(tǒng):windows 7
ip:192.168.21.130
c:\windows\system32\drivers\etc\hosts #用記事本打開,在檔案最後加上下面一行
192.168.21.164 www.osyunwei.com


###################################################################以下操作在nginx反向代理伺服器上配置##########################


1、關(guān)閉selinux

vi /etc/selinux/config
#selinux=enforcing #註解
#selinuxtype=targeted #註解掉
selinux =disabled #增加
:wq 儲存,關(guān)閉。
shutdown -r now重新啟動系統(tǒng)
2、開啟防火牆80連接埠
vi /etc/sysconfig/iptables
新增下面的內(nèi)容
-a input -m state --state new -m tcp -p tcp --dport 80 -j accept
/etc/init.d/iptables restart #重新啟動防火牆使設(shè)定生效
3、安裝編譯工具
yum install wget make gcc gcc-c zlib-devel openssl openssl-devel pcre-devel gd kernel keyutils patch perl
#4 、系統(tǒng)約定
#軟體原始碼套件存放位置:/usr /local/src
原始碼包編譯安裝位置:/usr/local/軟體名稱
#5、下載軟體
cd /usr/local/src #進入目錄
(一)、下載nginx(目前穩(wěn)定版)
wget http://nginx.org/download/nginx-1.0.12.tar.gz
(二)、下載pcre (支援nginx偽靜態(tài))
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.tar.gz
(二)、下載ngx_cache_purge(清除指定url快?。?br>wget http://labs.frickle.com/files/ngx_cache_purge-1.5.tar.gz
6、安裝pcre
cd /usr/local/src
mkdir /usr/local /pcre #建立安裝目錄
tar zxvf pcre-8.21.tar.gz
cd pcre-8.21
./configure --prefix=/usr/local/pcre #設(shè)定
make
make install
7、安裝nginx
groupadd www #新增www群組
useradd -g www www -s /bin/false #建立nginx執(zhí)行帳號www並加入到www群組,不允許www使用者直接登入系統(tǒng)
cd /usr/local/src
tar zxvf ngx_cache_purge-1.5.tar.gz
tar zxvf nginx-1.0.12.tar.gz
cd nginx-1.0 .12
./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module --with-openssl=/usr/ --with-pcre=/usr /local/src/pcre-8.21 --add-module=../ngx_cache_purge-1.5
注意:--with-pcre=/usr/local/src/pcre-8.21指向的是源碼包解壓縮的路徑,而不是安裝的路徑,否則會報錯
make #編譯
make install #安裝
/usr/local/nginx/sbin/nginx #啟動nginx
chown www.www -r /usr/ local/nginx/html #設(shè)定目錄擁有者
chmod 700 -r /usr/local/nginx/html #設(shè)定目錄權(quán)限
vi /etc/rc.d/init.d/nginx # 設(shè)定nginx開啟啟動,編輯啟動檔案加入下面內(nèi)容
================================== =====================
#!/bin/bash
# nginx startup script for the nginx http server
# it is v. 0.0.2 version.
# chkconfig: - 85 15
# description: nginx is a high-performance web and proxy server.
# it has a lot of features, but it's not for everyone.
# processname: nginx
# pidfile: /var/run/nginx.pid
# config: /usr/local/nginx/conf/nginx.conf
nginxd=/usr/local/nginx/sbin /nginx
nginx_config=/usr/local/nginx/conf/nginx.conf
nginx_pid=/usr/local/nginx/logs/nginx.pid
retval=0
prog="nginx"
# source function library.
. /etc/rc.d/init.d/functions
# source networking configuration.
. /etc/sysconfig/network
# check that networking is up.
[ ${networking} = "no" ] && exit 0
[ -x $nginxd ] || exit 0
# start nginx daemons functions.
start() {
if [ -e $nginx_pid ];then
echo "nginx already running...."
exit 1
fi
echo -n $"starting $prog: "
daemon $nginxd -c ${nginx_config}
retval=$?
echo
[ $retval = 0 ] && touch /var/lock/subsys/nginx
return $retval
}
## stop nginx daemons functions.
stop() {
echo -n $"stopping $prog: "
killproc $nginxd
retval=$?
echo
#[ $retval = 0 ] && rm -f /var/lock/subsys/nginx /usr/local/nginx/logs/nginx.pid
}
reload() {
echo -n $"reloading $prog: "
#kill -hup `cat ${nginx_pid}`
killproc $nginxd -hup
retval=$?
echo
}
# see how we were called.
casease "$1" in
start)
start

stop)
stop

#reload)
reload

restart)
stop
start
;;

status)
status $prog
retval=$?
##*)
echo $"usage: $prog {start|stop|restart|reload|status|help}"
exit 1
esac
exit $retval
================================ =======================
:wq!儲存退出
chmod 775 /etc/rc.d/init.d/nginx #賦予檔案執(zhí)行權(quán)限
chkconfig nginx on #設(shè)定開機啟動
/etc/rc.d/init.d/nginx restart
service nginx restart

8、設(shè)定nginx #cp /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.confbak #備份nginx設(shè)定檔
(一)、設(shè)定nginx運行帳號
vi /usr/local /nginx/conf/nginx.conf #編輯
找到user nobody;修改為
user www www; #在第一行
(二)、禁止nginx空主機頭
vi /usr/ local/nginx/conf/nginx.conf #編輯
找到server,在上面一行新增如下內(nèi)容:










##server {
listen 80 default;
server_name _;
location / {
root html;
return 404;
}
# location ~ /.ht {
deny all;
}
}



























#/etc/rc.d/init.d/nginx restart #重啟nginx
這樣設(shè)定之後,空主機頭存取會直接跳到nginx404錯誤頁面。
(三)、新增nginx虛擬主機包含檔案
cd /usr/local/nginx/conf/ #進入nginx安裝目錄
mkdir vhost #建立虛擬目錄
vi /usr/local/nginx /conf/nginx.conf #編輯
找到上一步驟新增的程式碼,最後新增如下內(nèi)容:
include vhost/*.conf;
例如:











server {
listen 80 default;
server_name _;
location / {
root html;
return 404;
}
location ~ /.ht {
deny all;
}
}
include vhost/*.conf;











(四)、新增proxy_cache參數(shù)設(shè)定包含檔案
cd /usr/local/ nginx/conf/ #進入目錄
touch proxy.conf #建立檔案###vi /usr/local/nginx/conf/nginx.conf #編輯###找到http { 在下面新增一行###include proxy .conf;###(五)、新增被代理伺服器清單包含檔案###cd /usr/local/nginx/conf/ #進入目錄###touch mysvrhost.conf #建立檔案###vi /usr/ local/nginx/conf/nginx.conf #編輯###找到上一個步驟新增的程式碼,在下方新增一行###include mysvrhost.conf;###(六)、設(shè)定nginx全域參數(shù)###vi /usr /local/nginx/conf/nginx.conf #編輯###worker_processes 2; # 工作進程數(shù),為cpu的核心數(shù)或兩倍###events###{###use epoll; #增加#### worker_connections 65535; #修改為65535,最大連線數(shù)。 ###}################以下程式碼在http { 部分增加與修改#################server_names_hash_bucket_size 128; #增加###client_header_buffer_size 32k; #增加###large_client_header_buffers 4 32k; #增加###client_max_body_size 300m; #增加###tcp_nopush on; #修改為onon##keepa_delDft on; #增加###server_tokens off; #增加,不顯示nginx版本資訊###gzip on; #修改為on###gzip_min_length 1k; #增加###gzip_buffers 4 16k; #增加###gzip_http_version 1.11 ; #增加###gzip_comp_level 2; #增加###gzip_types text/plain application/x-javascript text/css application/xml; #增加###gzip_vary on; #增加###(七)、設(shè)定proxy_cache###gzip_vary on; #增加###(七)、設(shè)定proxy_cache參數(shù)參數(shù)參數(shù)設(shè)定###cd /home #進入目錄###mkdir -p /home/proxy_temp_dir #proxy_temp_dir與proxy_cache_dir這兩個資料夾必須在同一個分割區(qū)###mkdir -p /home/proxy_cache_dir #proxy_cache###mkdir -p /home/proxy_cache_dir #proxy_cache_dirproxy_tempdirproxy_temp_temp_temp_Pg個資料夾必須在同一個分割區(qū)###chown www.www -r proxy_cache_dir proxy_temp_dir #設(shè)定目錄擁有者###chmod -r 777 proxy_cache_dir proxy_temp_dir #設(shè)定目錄權(quán)限###系統(tǒng)運作維www.osyunwei.com 溫馨提醒:qihang01原始內(nèi)容?版權(quán)所有,轉(zhuǎn)載請註明出處及原文鏈###cd /usr/local/nginx/conf/ #進入目錄###vi proxy.conf #編輯,加入以下程式碼###proxy_temp_path /home/proxy_temp_dir; #指定暫存檔案目錄###proxy_cache_path /home/proxy_cache_dir levels=1:2 keys_zone=cache_one:50m inactive=1d max_size=1g;####webweb快取區(qū)名稱為cache_one,記憶體為快取50mb,自動清除1天內(nèi)沒有被存取的文件,硬碟快取為1gb。 ###client_body_buffer_size 512k; #增加緩衝區(qū)代理緩衝客戶端請求的最大位元組數(shù)###proxy_connect_timeout 60; #增加連線後端伺服器逾時時間###proxy_read_timeout 60; #增加後端伺服器回應(yīng)請求逾時時間###proxy_read_timeout 60; #增加後端伺服器回應(yīng)請求逾時時間# ##proxy_send_timeout 60; #增加後端伺服器發(fā)送資料逾時時間###proxy_buffer_size 32k; #增加代理請求快取區(qū)大小###proxy_buffers 4 64k; #增加###proxy_busy_buffers_size 128k; proxy_buffers大小###proxy_temp_file_write_size 128k; #增加proxy快取暫存檔案的大小###proxy_next_upstream error timeout invalid_header http_500 http_503 http_404; #增加故障轉(zhuǎn)移,如果后端的服務(wù)器返回502、504、執(zhí)行超時等錯誤,自動將請求轉(zhuǎn)發(fā)到upstream負(fù)載均衡池中的另一臺服務(wù)器,實現(xiàn)故障轉(zhuǎn)移。proxy_cache cache_one; #增加使用web緩存區(qū)cache_one
(八)、設(shè)置被代理服務(wù)器文件列表
cd /usr/local/nginx/conf/ #進入目錄
vi mysvrhost.conf #編輯,添加以下代碼
upstream osyunweihost {
server 192.168.21.129:80 weight=1 max_fails=2 fail_timeout=30s;
}
(九)、新建虛擬主機配置文件
cd /usr/local/nginx/conf/vhost #進入虛擬主機目錄
touch www.osyunwei.com.conf #建立虛擬主機配置文件
vi www.osyunwei.com.conf #編輯

server {
listen 80;
server_name www.osyunwei.com osyunwei.com;

location /
{
proxy_pass http://osyunweihost;
proxy_cache_key $host$uri$is_args$args; #增加設(shè)置web緩存的key值,nginx根據(jù)key值md5哈希存儲緩存
proxy_set_header host $host;
proxy_set_header x-forwarded-for $remote_addr;
proxy_cache_valid 200 304 12h;
expires 2d;
}
location ~ .*\.(php|jsp|cgi|asp|aspx|flv|swf|xml)?$ #列出的擴展名文件不緩存。

{
proxy_set_header host $host;
proxy_set_header x-forwarded-for $remote_addr;
proxy_pass http://osyunweihost;
}
access_log off;
}

location ~ /purge(/.*) #用于清除緩存
{
allow 127.0.0.1;
allow 192.168.21.0/24; #設(shè)置只允許指定的ip或ip段才可以清除url緩存。
deny all;
proxy_cache_purge cache_one $host$1$is_args$args;
}
###################以上操作在nginx反向代理服務(wù)器上配置###################
9、ngx_cache_pure清除緩存模塊使用說明
說明:根據(jù)配置只允許192.168.21.0/24 ip段的主機才可以清除url緩存,現(xiàn)在我使用的客戶機ip是:192.168.21.130,有權(quán)限清除url緩存。

1、瀏覽圖片文件:http://www.osyunwei.com/images/nopic.gif

怎麼使用Nginx反向代理與proxy_cache快取搭建CDN伺服器

2、清除這個文件緩存:http://www.osyunwei.com/purge/images/nopic.gif

怎麼使用Nginx反向代理與proxy_cache快取搭建CDN伺服器

提示:successful purge,緩存文件清除成功,如果這個文件沒有被緩存過,則提示:404 not found

怎麼使用Nginx反向代理與proxy_cache快取搭建CDN伺服器

備注:
1、purge是ngx_cache_pure 模塊指令
2、images/nopic.gif 是要清除的緩存文件url路徑

至此,使用nginx反向代理和proxy_cache緩存功能配置cdn服務(wù)器教程結(jié)束。

附件:

1、nginx配置文件/usr/local/nginx/conf/nginx.conf

 user www www; 
worker_processes 2; 
#error_log logs/error.log; 
#error_log logs/error.log notice; 
#error_log logs/error.log info; 
#pid logs/nginx.pid; 

events { 
use epoll; 
worker_connections 65535; 
} 

http { 
include proxy.conf; 
include mysvrhost.conf; 
include mime.types; 
default_type application/octet-stream; 

#log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 
# '$status $body_bytes_sent "$http_referer" ' 
# '"$http_user_agent" "$http_x_forwarded_for"'; 

#access_log logs/access.log main; 

server_names_hash_bucket_size 128; 
client_header_buffer_size 32k; 
large_client_header_buffers 4 32k; 
client_max_body_size 300m; 
sendfile on; 
tcp_nopush on; 

#keepalive_timeout 0; 
keepalive_timeout 60; 
tcp_nodelay on; 
server_tokens off; 

gzip on; 
gzip_min_length 1k; 
gzip_buffers 4 16k; 
gzip_http_version 1.1; 
gzip_comp_level 2; 
gzip_types text/plain application/x-javascript text/css application/xml; 
gzip_vary on; 

server { 
listen 80 default; 
server_name _; 
location / { 
root html; 
return 404; 
} 
location ~ /.ht { 
deny all; 
} 
} 
include vhost/*.conf; 
}

2、被代理服務(wù)器列表文件/usr/local/nginx/conf/mysvrhost.conf

 upstream osyunweihost { 
server 192.168.21.129:80 weight=1 max_fails=2 fail_timeout=30s; 
}

3、proxy_cache參數(shù)配置文件/usr/local/nginx/conf/proxy.conf

 proxy_temp_path /home/proxy_temp_dir; 
proxy_cache_path /home/proxy_cache_dir levels=1:2 keys_zone=cache_one:500m inactive=1d max_size=30g; 
client_body_buffer_size 512k; 
proxy_connect_timeout 60; 
proxy_read_timeout 60; 
proxy_send_timeout 60; 
proxy_buffer_size 32k; 
proxy_buffers 4 64k; 
proxy_busy_buffers_size 128k; 
proxy_temp_file_write_size 128k; 
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404; 
proxy_cache cache_one;

4、虛擬主機配置文件/usr/local/nginx/conf/vhost/www.osyunwei.com.conf

 server { 
listen 80; 
server_name www.osyunwei.com osyunwei.com; 
location / 
{ 
proxy_pass http://osyunweihost; 
proxy_cache_key $host$uri$is_args$args; 
proxy_set_header host $host; 
proxy_set_header x-forwarded-for $remote_addr; 
proxy_cache_valid 200 304 12h; 
expires 2d; 
} 

location ~ /purge(/.*) 
{ 
allow 127.0.0.1; 
allow 192.168.21.0/24; 
deny all; 
proxy_cache_purge cache_one $host$1$is_args$args; 
} 

location ~ .*\.(php|jsp|cgi|asp|aspx|flv|swf|xml)?$ 
{ 
proxy_set_header host $host; 
proxy_set_header x-forwarded-for $remote_addr; 
proxy_pass http://osyunweihost; 
} 
access_log off; 
}

擴展閱讀:
#################################################################
nginx修改版本等信息
vi /usr/local/src/nginx-1.0.12/src/core/nginx.h #編譯前編輯
#define nginx_version
#define nginx_version
#define nginx_ver
#define nginx_var
修改上面的信息,即可更改nginx顯示版本。
vi /usr/local/src/http/ngx_http_special_response.c #編譯前編輯
static u_char ngx_http_error_full_tail[] =
static u_char ngx_http_error_tail[] =
修改上面的信息為你自己的。

以上是怎麼使用Nginx反向代理與proxy_cache快取搭建CDN伺服器的詳細內(nèi)容。更多資訊請關(guān)注PHP中文網(wǎng)其他相關(guān)文章!

本網(wǎng)站聲明
本文內(nèi)容由網(wǎng)友自願投稿,版權(quán)歸原作者所有。本站不承擔(dān)相應(yīng)的法律責(zé)任。如發(fā)現(xiàn)涉嫌抄襲或侵權(quán)的內(nèi)容,請聯(lián)絡(luò)admin@php.cn

熱AI工具

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅(qū)動的應(yīng)用程序,用於創(chuàng)建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發(fā)環(huán)境

Dreamweaver CS6

Dreamweaver CS6

視覺化網(wǎng)頁開發(fā)工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

熱門話題

Laravel 教程
1597
29
PHP教程
1488
72
nginx和apache:了解關(guān)鍵差異 nginx和apache:了解關(guān)鍵差異 Apr 26, 2025 am 12:01 AM

NGINX和Apache各有優(yōu)劣,選擇應(yīng)基於具體需求。 1.NGINX適合高並發(fā)場景,因其異步非阻塞架構(gòu)。 2.Apache適用於需要復(fù)雜配置的低並發(fā)場景,因其模塊化設(shè)計。

php寫完代碼怎麼執(zhí)行 php代碼執(zhí)行的幾種常見方式 php寫完代碼怎麼執(zhí)行 php代碼執(zhí)行的幾種常見方式 May 23, 2025 pm 08:33 PM

PHP代碼可以通過多種方式執(zhí)行:1.使用命令行,直接輸入“php文件名”執(zhí)行腳本;2.通過Web服務(wù)器,將文件放入文檔根目錄並通過瀏覽器訪問;3.在IDE中運行,利用內(nèi)置調(diào)試工具;4.使用在線PHP沙箱或代碼執(zhí)行平臺進行測試。

安裝Nginx後配置文件路徑及初始設(shè)置 安裝Nginx後配置文件路徑及初始設(shè)置 May 16, 2025 pm 10:54 PM

了解Nginx的配置文件路徑和初始設(shè)置非常重要,因為它是優(yōu)化和管理Web服務(wù)器的第一步。 1)配置文件路徑通常是/etc/nginx/nginx.conf,使用nginx-t命令可以查找並測試語法。 2)初始設(shè)置包括全局設(shè)置(如user、worker_processes)和HTTP設(shè)置(如include、log_format),這些設(shè)置允許根據(jù)需求進行定制和擴展,錯誤配置可能導(dǎo)致性能問題和安全漏洞。

linux如何限制用戶資源? ulimit怎麼配置? linux如何限制用戶資源? ulimit怎麼配置? May 29, 2025 pm 11:09 PM

Linux系統(tǒng)通過ulimit命令限制用戶資源,防止資源過度佔用。 1.ulimit是shell內(nèi)置命令,可限製文件描述符數(shù)(-n)、內(nèi)存大小(-v)、線程數(shù)(-u)等,分為軟限制(當(dāng)前生效值)和硬限制(最高上限)。 2.臨時修改直接使用ulimit命令,如ulimit-n2048,但僅對當(dāng)前會話有效。 3.永久生效需修改/etc/security/limits.conf及PAM配置文件,並添加sessionrequiredpam_limits.so。 4.systemd服務(wù)需在unit文件中設(shè)置Lim

Debian Nginx配置技巧有哪些 Debian Nginx配置技巧有哪些 May 29, 2025 pm 11:06 PM

在Debian系統(tǒng)上配置Nginx時,以下是一些實用的技巧:配置文件的基本結(jié)構(gòu)全局設(shè)置部分:定義影響整個Nginx服務(wù)的行為參數(shù),比如工作線程數(shù)量及運行用戶權(quán)限。事件處理部分:決定Nginx如何應(yīng)對網(wǎng)絡(luò)連接,是提升性能的關(guān)鍵配置。 HTTP服務(wù)部分:包含大量與HTTP服務(wù)相關(guān)的設(shè)定,可內(nèi)嵌多個server和location塊。核心配置選項worker_connections:定義每個工作線程所能處理的最大連接數(shù),通常設(shè)為1024。 multi_accept:激活多連接接收模式,增強並發(fā)處理的能力。 s

NGINX的目的:服務(wù)Web內(nèi)容等 NGINX的目的:服務(wù)Web內(nèi)容等 May 08, 2025 am 12:07 AM

nginxserveswebcontentandactsasareverseproxy,loadBalancer和more.1)效率高效的servesstaticContentLikeHtmlandImages.2)itfunctionsasareverseproxybalancer,and andginxenhanceperforfforfforfforfforfforffrenfcaching.4)

NGINX故障排除:診斷和解決常見錯誤 NGINX故障排除:診斷和解決常見錯誤 May 05, 2025 am 12:09 AM

Nginx常見錯誤的診斷與解決方法包括:1.查看日誌文件,2.調(diào)整配置文件,3.優(yōu)化性能。通過分析日誌、調(diào)整超時設(shè)置和優(yōu)化緩存及負(fù)載均衡,可以有效解決404、502、504等錯誤,提高網(wǎng)站穩(wěn)定性和性能。

Debian Apache2的SEO優(yōu)化技巧有哪些 Debian Apache2的SEO優(yōu)化技巧有哪些 May 28, 2025 pm 05:03 PM

DebianApache2的SEO優(yōu)化技巧涵蓋多個層面,以下是一些關(guān)鍵方法:關(guān)鍵詞研究:利用工具(如關(guān)鍵詞魔術(shù)工具)挖掘頁面的核心及輔助關(guān)鍵詞。優(yōu)質(zhì)內(nèi)容創(chuàng)作:產(chǎn)出有價值且原創(chuàng)的內(nèi)容,內(nèi)容需經(jīng)過深入調(diào)研,確保語言流暢且格式清晰。內(nèi)容排版與結(jié)構(gòu)優(yōu)化:運用標(biāo)題和小標(biāo)題引導(dǎo)閱讀。編寫簡潔明了的段落和句子。利用列表展示重點信息。結(jié)合圖片、視頻等多媒體增強表現(xiàn)力。留白設(shè)計提昇文本易讀性。技術(shù)層面SEO改進:robots.txt文件:規(guī)定搜索引擎爬蟲的訪問權(quán)限。加速網(wǎng)頁加載:借助緩存機制和Apache配置優(yōu)化

See all articles