随笔分类 - apache/nginx
apache 相关内容
摘要:nginx作反向代理,实现负载均衡按正常的方法安装好 ngixn,方法可参考http://www.cnblogs.com/lin3615/p/4376224.html其中作了反向代理的服务器的配置如下(不能让其去解析php,这里只作代理用)基本配置:(nginx.conf) 用相关数据替换以上ip,
阅读全文
摘要:内容来自以下网站整理 http://www.jb51.net/article/58060.htmhttp://www.2cto.com/os/201202/120665.htmlhttp://blog.csdn.net/lipei1220/article/details/39293851 测试时请用
阅读全文
摘要:apache三种工作模式: prefork(2.4前默认)/worker/event(2.4默认)内容整理来自以下网站http://m.blog.csdn.net/article/details?id=40738507http://blog.chinaunix.net/uid-20773865-id
阅读全文
摘要:// apache// 禁止访问目录// 开启 url重写// 重写定义错误页面// 日志分页// 增加并发连接数// 设置连接连接的时间// threadsPerChild // 每个进程的线程数 默认 64,最大 1920,所以 100-500为好// maxRequestsPerChild /...
阅读全文
摘要:是在wamp中,apache2.2 开启 伪静态时,httpd.conf 配置如下:查找Options FollowSymLinksAllowOverride NoneOrder deny,allowDeny from all修改为: Options FollowSymLinks AllowOverride All Order deny,allow Deny from all查找 # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All",...
阅读全文
摘要:Apache 配置localhost虚拟主机步骤1,打开apache目录下httpd.conf文件,找到如下模块 # Virtual hosts #Include conf/extra/httpd-vhosts.conf去掉前面的#,这样就开启了httpd-vhosts虚拟主机文件,这时httpd.conf中的documentRoot不在起作用,需要在httpd- vhosts.conf重新配置。2,打开conf/extra/httpd-vhosts文件,配置好localhost虚拟主机,参照httpd- vhosts文件中实例,修改成如下: ServerAdmin webmaster@dum
阅读全文
摘要:301全站跳转RewriteEngine OnRewriteCond %{HTTP_HOST} ^www\.old\.net$ [NC]RewriteRule ^(.*)$ http://www.new\.net/$1 [L,R=301,NC]其中 http://不能省略,不然出现绝对路径加在跳转重...
阅读全文