<divmicrosoft yahei>進入設定檔:vi /usr/local/webserver/nginx/conf/nginx.conf<divmicrosoft yahei>upstream www.linux.com{<br> server 192.168.1.204:80 ache_path /data0/htdocs/www/aaa levels =1:2 keys_zone=aaa:20m max_size=1g;<br> server {<br> listen location / {<br> proxy_pass http://www.lin <br> proxy_set_header X-Real-IP $remote_addr;<br> <br> proxy_cache aaa;<br> proxy_cache_valid <br>保存退出<br><br>重新載入nginx:/usr/local/網站/nginx/sbin/nginx -s reload<br><br>訪問頁面測試效果如下<br><br><divmicrosoft yahei><divmicrosoft yahei>完成 <divmicrosoft yahei> 以上就介紹了nginx快取配置,包含了方面的內容,希望對PHP教學有興趣的朋友有幫助。 <divmicrosoft yahei> </divmicrosoft></divmicrosoft></divmicrosoft></divmicrosoft></divmicrosoft></divmicrosoft>