• 安装apache时checking for APR... no错误的解决方法

    日期:

    安装apache时checking for APR... no错误的解决方法 #./configure --prefix检查编辑环境时出现: checking for APR... no configure: error: APR not found . Please read the documentation. 可以用./configure help | grep apr 查看帮助。 --with-included...

  • apache ErrorDocument 404 配置404错误页面的例子

    日期:

    apacheErrorDocument 404 配置404错误页面的例子,示例与说明如下。 复制代码 代码如下: ErrorDocument 404 /base/world_map6.png #全局生效 NameVirtualHost *:80 VirtualHost *:80 servername haha.92xy.com ErrorDocument 404 /base/world_map6.txt /Virt...

  • centos oot用户service httpd报错bash: service: command not fo

    日期:

    用普通用户登录,然后su到root用户,准备重启httpd服务 [root@localhost nagios-3.2.3]# service httpd restart bash: service: command not found 国外一个论坛有解释,大家也可以参考一下: http://www.linuxquestions.org/questions/linux-newbie-8/servi...

  • apache不缓存的配置方法

    日期:

    在开发调试网站时,经常会碰到因浏览器缓存(cache)而经常要去清空缓存或者强制刷新来测试的烦恼。 这里提供下apache不缓存的配置方法。 apache: 首先确定配置文件httpd.conf中确已经加载mod_headers模块。 LoadModule headers_module modules/mod_headers.s...

  • apache配置文件httpd.conf详解

    日期:

    apche配置参数比较多,这里只写了我平时经常用到的几点:黑色文字是网上找的资料,蓝色是配置参数,红色是我自己的看法,仅供参考。 Worker 由主控制进程生成StartServers个子进程,每个子进程中包含固定的ThreadsPerChild线程数,各个线程独立地处理请求。同...

  • apache两种工作模式详解

    日期:

    查看apache工作在哪个模式下,使用命令:apachectl -l即可。 这里,先以prefork模式为例来说明参数的设置,其缺省设置一般如下: 复制代码 代码如下: IfModule mpm_prefork_module StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxR...

  • apache配置反向代理的例子

    日期:

    配置apache虚拟主机一例,使用了反向代理。 复制代码 代码如下: VirtualHost *:80 ServerAdmin cc@it.net.cn ServerNameit.net.cn ServerAlias www.it.net.cn DocumentRoot /home/www/jbxue.com/WebRoot Directory /home/www/jbxue.com/WebRoot Options Inde...

  • apache日志中排除关键字的写法

    日期:

    apache日志中排除关键字(或日志中过滤关键字)的写法,参照如下配置: 复制代码 代码如下: VirtualHost * .... .... SetEnvif Request_URI /descri.txt$ test //定义test 指定URL CustomLog logs/down.test.com.log common env=!test // 排除test中配置的关...

  • apache mime后缀名支持(apk ipk支持等)

    日期:

    一般在mime.types文件中添加相应的后缀,重启 apache 后即可。 text/vnd.sun.j2me.app-descriptor jad; application/java-archive jar war ear; application/x-java-archive-diff jardiff; application/vnd.android.package-archive apk; application/vnd.ms...

  • ubuntu禁止apache开机自启动的方法

    日期:

    ubuntu禁止apache开机自启动的方法,简单方便而优雅,几个命令搞定。 复制代码 代码如下: # 移除apache2自启动脚本, # 参数-f是为了解决 update-rc.d: /etc/init.d/apache2 exists during rc.d purge的问题 sudo update-rc.d -f apache2 remove # 同时也可以...