{"id":27521,"date":"2020-02-05T05:08:04","date_gmt":"2020-02-04T21:08:04","guid":{"rendered":"http:\/\/4563.org\/?p=27521"},"modified":"2020-02-05T05:08:04","modified_gmt":"2020-02-04T21:08:04","slug":"nginx%e9%85%8d%e7%bd%ae%e5%a6%82%e4%bd%95%e4%bf%ae%e6%94%b9%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=27521","title":{"rendered":"nginx\u914d\u7f6e\u5982\u4f55\u4fee\u6539\uff1f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u7ffb\u8f66\u7684\u8001\u53f8\u673a<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 15:16:59\t<\/p>\n<h3>nginx\u914d\u7f6e\u5982\u4f55\u4fee\u6539\uff1f<\/h3>\n<p>  \t\t\u6211\u60f3\u628a\u6240\u6709\u7f51\u5740\u8bbf\u95ee\u65f6\u5019\u540e\u9762\u81ea\u52a8\u52a0\u4e0a?xxx=xxx\uff0c\u4f8b\u5982\u6b63\u5e38\u7f51\u5740\u662fhttp:\/\/www.aaa.com\/1.html,\u8bbf\u95ee\u65f6\u5019\u5730\u5740\u680f\u91cc\u9762\u5730\u5740\u662fhttp:\/\/www.aaa.com\/1.html?xxx=xxx<br \/>  \u8fd9\u529f\u80fd\u80fd\u5b9e\u73b0\u5417<br \/>  userwww www;<br \/>  worker_processes auto;<br \/>  error_log\/www\/wwwlogs\/nginx_error.logcrit;<br \/>  pid&nbsp; &nbsp;&nbsp; &nbsp;\/www\/server\/nginx\/logs\/nginx.pid;<br \/>  worker_rlimit_nofile 51200;<\/p>\n<p>  events<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;use epoll;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;worker_connections 51200;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;multi_accept on;<br \/>  &nbsp; &nbsp; }<\/p>\n<p>  http<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;include&nbsp; &nbsp;&nbsp; &nbsp; mime.types;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #include luawaf.conf;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; include proxy.conf;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;default_typeapplication\/octet-stream;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;server_names_hash_bucket_size 512;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;client_header_buffer_size 32k;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;large_client_header_buffers 4 32k;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;client_max_body_size 50m;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;sendfile&nbsp; &nbsp;on;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;tcp_nopush on;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;keepalive_timeout 60;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;tcp_nodelay on;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;fastcgi_connect_timeout 300;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;fastcgi_send_timeout 300;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;fastcgi_read_timeout 300;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;fastcgi_buffer_size 64k;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;fastcgi_buffers 4 64k;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;fastcgi_busy_buffers_size 128k;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;fastcgi_temp_file_write_size 256k;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fastcgi_intercept_errors on;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;gzip on;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;gzip_min_length1k;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;gzip_buffers&nbsp; &nbsp;4 16k;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;gzip_http_version 1.1;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;gzip_comp_level 2;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;gzip_types&nbsp; &nbsp;text\/plain application\/javascript application\/x-javascript text\/javascript text\/css application\/xml;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;gzip_vary on;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;gzip_proxied&nbsp; &nbsp;expired no-cache no-store private auth;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;gzip_disable&nbsp; &nbsp;&quot;MSIE .&quot;;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;limit_conn_zone $binary_remote_addr zone=perip:10m;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; limit_conn_zone $server_name zone=perserver:10m;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;server_tokens off;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;access_log off;<\/p>\n<p>  server<br \/>  &nbsp; &nbsp; {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;listen 888;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;server_name phpmyadmin;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;index index.html index.htm index.php;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;root\/www\/server\/phpmyadmin;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;#error_page&nbsp; &nbsp;404&nbsp; &nbsp;\/404.html;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;include enable-php.conf;<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;expires&nbsp; &nbsp;&nbsp; &nbsp;30d;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;location ~ .*.(js|css)?$<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;expires&nbsp; &nbsp;&nbsp; &nbsp;12h;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;location ~ \/.<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;deny all;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;access_log\/www\/wwwlogs\/access.log;<br \/>  &nbsp; &nbsp; }<br \/>  include \/www\/server\/panel\/vhost\/nginx\/*.conf;<br \/>  }  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>chinni<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-30 13:44:58\t<\/p>\n<h3><\/h3>\n<p>  \t\trewrite \/(.S*) \/$1?xxx=xxx\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ffb\u8f66\u7684\u8001\u53f8\u673a \u5927\u4f6c\u6709\u8bdd\u8bf4 : 20&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/27521"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27521"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/27521\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27521"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}