本帖最后由 娱乐随你 于 2010-02-12 13:22 编辑 [code]server { listen 80; server_name www.xxx.com xxx.com; index index.html index.php index.htm; access_log off; charset utf8; root /var/www/xxx.com; if ($host !~ "^www\.xxx\.com$") { rewrite ^(.*) http://www.xxx.com$1 permanent; } location ~* \.(js|css|jpg|jpeg|gif|png)$ { root /var/www/xxx.com; expires 3d; #break; } location ~* \.(html)...
by 娱乐随你 - Linux新手园地 - 2010-02-12 13:18:52 阅读(2407) 回复(0)
location /ep/ { alias /usr/local/nginx-0.7.62/html/; break; } location /zh_cn/ { alias /wwwtest/; } location ~* \.(gif|jpg|png|js|css|swf)$ { expires 30m; access_log off; ...
请问: nginx 里 proxy_cache_valid 200 302 12h; expires 1d 同时设置了,有什么区别?
Etag和expires 题记:本文对页面中Etag和expires标识处理,使得页面更加有效被Cache。 原版来源: http://phaedo.cx/archives/2007/0 ... pache-and-lighttpd/ 摘要 1、Etag和expires中Client 端Http Request Header及Server端Http Reponse Header工作原理。 2、静态下Apache、Lighttpd和nginx中Etag和expires配置 3、非实时交互动态页面中Etag和expires处理 在客户端通过浏览器发出第一次请求某一个URL时,根据 HTTP 协议...
php的代码如下:[code] $url = 'http://localhost/php/ok.html'; $headInf = get_headers($url, 1); print_r($headInf); [/code]输出: Array ( [0] => HTTP/1.1 200 OK [Date] => Sun, 11 Mar 2012 13:23:09 GMT [Server] => Apache/2.2.20 (Ubuntu) [Last-Modified] => Sat, 25 Feb 2012 14:27:49 GMT [ETag] => "81135-4-4b9caae86db3a" [Accept-Ranges] => bytes [Content-Length] => 4 [Va...
the link is:http://kerneltrap.org/node/6536 Posted by Jeremy on 星期五, 四月 28, 2006 - 08:58 David Woodhouse offered a collection of patches aimed at cleaning up Linux kernel headers, explaining that he maintains the Fedora glibc-kernheaders package and has found the process of syncing with the latest kernel to be unnecessarily tedious. Linus Torvalds acknowledged the effort, noting that he ...
the link is:http://kerneltrap.org/node/6536 Posted by Jeremy on 星期五, 四月 28, 2006 - 08:58 David Woodhouse offered a collection of patches aimed at cleaning up Linux kernel headers, explaining that he maintains the Fedora glibc-kernheaders package and has found the process of syncing with the latest kernel to be unnecessarily tedious. Linus Torvalds acknowledged the effort, noting that he ...
怎样查看一个网站的headers信息。如下 A Sample HTTP Response headers with Cache-Control and expires: HTTP/1.1 200 OK Date: Fri, 30 Oct 1998 13:19:41 GMT Server: Apache/1.3.3 (Unix) Cache-Control: max-age=3600, must-revalidate expires: Fri, 30 Oct 1998 14:19:41 GMT Last-Modified: Mon, 29 Jun 1998 02:28:12 GMT ETag: "3e86-410-3596fbbc" Content-Length: 1040 Content-Type: text/html
The 18 standard headers are:
nginx安装配置stub_status nginx中的stub_status模块主要用于查看nginx的一些状态信息. 本模块默认是不会编译进nginx的,如果你要使用该模块,则要在编译安装nginx时指定: ./configure –with-http_stub_status_module 查看已安装的 nginx 是否包含 stub_status 模块 #/usr/local/nginx/sbin/nginx -V nginx version: nginx/1.0.5 built by gcc 5.4.6 20120404 (Centos 6.2) configure arguments: --user=ng...