SetOutputFilter DEFLATE AddOutputFilter DEFLATE xml php js css BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # Don't compress images SetEnvIfNoCase Request_URI \ \.(?:gif|jpe?g|png)$ no-gzip dont-vary SetEnvIfNoCase Request_URI \ \....
有人吗? 有个问题 mod_expires 和 mod_gzip 好象不兼容 只要把 mod_gzip_on 设置为 yes 不管怎么点页面都没有 304 的迹象 expiresActive On expiresByType image/gif A604800 ... ... 不管怎么设置都没有缓存 把 mod_gzip_on 设置为 no 就正常了 有人遇到过吗?
我的服务器上的配置是
win2000+apache2.0.54+tomcat5.0.28
现在想在某些目录上设置网页过期时间。
当写法是在httpd.conf的后面直接加
expiresActive on
expiresDefault "access plus 50 hour"
时,网站全部网页和图片等内容起作用。
当我想只配置某个特定的目录起作用时。写法改为:
把mod_expires打开以后 一些地方会出现问题。 比如论坛 登陆 以后还是显示客人 只有刷新以后才会正常 类似这种情况怎么解决呢? 还有。为什么我的 httpd -l 只显示 Compiled-in modules: http_core.c mod_so.c suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec 但是我apache里面已经配置了不少东西的 比如mod_gzip 之类。并且好象都正常的。
Server: Apache/1.3.41 (Unix)
安装了mod_expires
在网站根目录添加了文件.htaccess
.htaccess内容如下
2008/09/03 08:10:28 [notice] 4197#0: using the "epoll" event method 2008/09/03 08:10:28 [notice] 4197#0: nginx/0.6.31 2008/09/03 08:10:28 [notice] 4197#0: built by gcc 3.4.6 20060404 (Red Hat 3.4.6-3) 2008/09/03 08:10:28 [notice] 4197#0: OS: Linux 2.6.9-42.EL 2008/09/03 08:10:28 [notice] 4197#0: sysctl(KERN_RTSIGMAX): 0 2008/09/03 08:10:28 [notice] 4197#0: getrlimit(RLIMIT_NOFILE): 65535:65535 200...
nginx的负载均衡有哪些功能呢? * 如果后面的服务器其中一台坏了,它能自动识别,更牛的是它好了之后nginx可以马上识别 那么大虾知道这ngnix的这个功能使用那部分配置或文件实现的,基本原理是什么?
使用心得:nginx处理大并发比较稳定,特别省 内存 ,配置简单. 1.安装pythoncd /usr/ports/lang/python make install clean 2.安装flup cd /usr/ports/www/py-flup make install clean 3.安装 django 1) cd /usr/ports/www/py-django make install clean 4.安装 nginx cd /usr/ports/www/nginx make install clean 5.启动和管理flup的脚本 参考 http://www.djangoproject.com/documentation/fastcgi/ #!/bin/sh # Replace these thr...
nginx总结 目录 一、安装 2 A)一般安装 2 B)高级安装 2 二、基本命令 3 三、配置文件 3 A)配置文件解释 3 B)带监控模块的配置 4 C)虚拟主机的配置 5 五、事件模型介绍--I/O复用方法 7 A)标准事件模型 7 B)高效事件模型 7 六、关于LEMP的结构 8 A)Linux+nginx+Mysql+Php 8 B)其他结构 8 七、软件的平滑升级 10 A)简单修改配置文件 10 B)平滑升级二进制代码 11 八、相关的处理信号 12 A)主进程可以处理的信号 12 B)工作进...