1. [代码][C/C++]代码 /** Copyright (c) 2011, Jim Hollinger* All rights reserved.** Redistribution and use in source and binary forms, with or without* mod...
分类:
其他好文 时间:
2014-09-04 16:40:09
阅读次数:
259
配置apache密码认证apache提供了一系列的认证,授权,访问控制模块,我们这里选用最方便的mod_auth_basic,mod_authn_file,mod_authz_user这三个模块实现目录或文件需要输入用户和密码认证。1、生成密码文件示例:htpasswd -c /var/www/.h...
分类:
其他好文 时间:
2014-09-04 14:35:59
阅读次数:
321
25个Apache性能优化技巧推荐 Apache至今仍处于web服务器领域的霸主,无人撼动,没有开发者不知道。本篇文章介绍25个Apache性能优化的技巧,如果你能理解并掌握,将让你的Apache性能有显著的提升!Apache部分:1. 移除不用的模块。2. 使用 mod_disk_cache NO...
分类:
其他好文 时间:
2014-09-04 14:33:39
阅读次数:
176
Apache正向代理与反向代理配置正向代理示例配置:ProxyRequests OnProxyVia OnOrder deny,allowDeny from allAllow from 192.168.0CacheEnable disk /CacheRoot "/var/cache/mod_prox...
分类:
其他好文 时间:
2014-09-04 01:31:17
阅读次数:
139
安装mod_rpaf让apache获取访客真实IP安装mod_rpaf让apache获取访客真实IP作者:朱 茂海/分类:Apache字号:LMSmod_rpaf是apache的一个模块,目的是为了获取访客的真实IP,下面是安装方法:wget http://stderr.net/apache/rpa...
分类:
其他好文 时间:
2014-09-04 01:27:17
阅读次数:
194
配置apache以fastcgi运行php文章目录[隐藏]安装apache安装fastcgi安装php5.2配置apache支持phpapache默认是用自带的mod_php模块运行php,现在我们介绍使用fastcgi来执行php脚本。先说下fastcgi的优点:Fastcgi的优点:从稳定性上看...
分类:
Web程序 时间:
2014-09-04 01:27:07
阅读次数:
242
1:安装mod_wsgi:下载mod_wsgi.so放在modules(在apache安装路径中)文件夹中下载地址:http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi **注意:在选择的时候要记住:mod_wsgi-3.5.ap22.win32-p...
分类:
其他好文 时间:
2014-09-03 11:14:06
阅读次数:
344
简单的矩阵构造题,参看我前几篇的谈到的矩阵的构造法。#include #include #include #include using namespace std;int Mod;struct Matrax { int m[15][15];};Matrax a,per;int ats[15],an[...
分类:
其他好文 时间:
2014-09-02 17:24:34
阅读次数:
208
呃,离散数学课上直接就有这样的题#include #include #include using namespace std;const int Mod=1000;struct Matrax { int m[25][25];};Matrax a,per;int n,m;void initial(){...
分类:
其他好文 时间:
2014-09-02 14:03:14
阅读次数:
206
一般来说,负载均衡就是将客户端的请求分流给后端的各个真实服务器,达到负载均衡的目的。还有一种方式是用两台服务器,一台作为主服务器(Master),另一台作为热备份(Hot Standby),请求全部分给主服务器,在主服务器当机时,立即切换到备份服务器,以提高系统的整体可第一次看到这个标题时我也很惊讶...
分类:
其他好文 时间:
2014-09-02 14:02:54
阅读次数:
286