• 禁止apache浏览目录

    日期:

    在PHP网站开发中,基于WEB服务器和PHP网站程序代码的安全考虑,我们需要对相关的目录或者文件访问权限进行控制,以防止意外情况的发生,那么我们如何来实现这种功能呢?我们可以通过Apache来实现禁止目录访问(禁止游览列出的目录或文件列表)、禁止或允许IP与...

  • apache 301跳转

    日期:

    在apache的conf文件中,打开httpd.conf 去掉下面的注释 LoadModule rewrite_module modules/mod_rewrite.so ################################################### VirtualHost *:80 DocumentRoot /var/www/html/y80h ServerName www.y80h.com ServerAlias y...

  • 分析apache日志,统计访问量

    日期:

    cat nondomain_access_log.20090722 |awk {print $1}| sort | uniq -c |sort -nr...

  • Apache下部署SSL教程

    日期:

    https(全称:Hyper Text Transfer Protocol over Secure Socket Layer),是以安全为目标的 http 通道,简单讲是 http 的安全版。即 http 下加入 SSL 层,https 的安全基础是 SSL,因此加密的详细内容就需要 SSL。 个人网站用 SSL 证书,国外这几年开始比较...

  • Apache遇到的问题:APR not found

    日期:

    #./configure --prefix检查编辑环境时出现: checking for APR... no configure: error:APR not found. Please read the documentation. 可以用./configure help | grep apr查看帮助。 --with-included-apr Use bundled copies of APR/APR-Util --with-apr=P...

  • nginx+php与apache+php性能对比,nginx性能对比

    日期:

    nginx+php与apache+php性能对比,nginx性能对比 测试工具http_load相同的动态页面测试,相同的硬件资源,nginx+php比apache+php的性能要差,相同并发,相同请求数量的前提 下,而且如果请求的压力大于硬件资源的承受能力,nginx+php在有些请求中会返回502状...

  • Apache配置SSL并反向代理Tomcat

    日期:

    环境搭建参考 Apache:https://www.xssfox.com/2015-12-01/apache%e5%bc%80%e5%90%afhttp2-or-spdy%e6%94%af%e6%8c%81/ JDK Tomcat:https://www.xssfox.com/2016-01-07/centos7-java-web%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E5%BF%AB%E9%80%9F%E6%90%AD%E...

  • apache 日记按天记录

    日期:

    apache 日志按天记录 在apache的配置文件中找到 ErrorLog logs/error_log CustomLog logs/access_log common Linux系统配置方法: 将其改为? ErrorLog | /usr/local/apache/bin/rotatelogs /home/logs/www/%Y_%m_%d_error_log 86400 480 CustomLog | /usr/loc...

  • Apache按天截断日志工具-rotatelogs

    日期:

    使用apache系统自带的rotatelogs对日志进行截断处理 一,修改文件httpd.conf 使用绝对路径修改,不要使用相对路径,跑不起来的啦。 CustomLog logs/access.log common 原来的样子 ErrorLog logs/error.log 原来的样子 CustomLog |bin/rotatelogs /var/logs/l...

  • Apache 按天分割日志的方法

    日期:

    这里介绍了两个管道日志程序来实现 A. 使用 cronolog 为每一天建立一个新的日志 从 http://cronolog.org/download/ 可以下载 cronolog 程序,把下载到的 cronolog 程序并放到 Apache 的 bin 目录下(详细参数参见:http://cronolog.org/usage.html) 主配置...