有关apache模块的调试的一些小知识 在编译apache时,增加-g选项: # ./configure CFLAGS=-g --with-included-apr --with-php --with-mysql--with-su***ec --with-mpm=prefork --enable-so --enable-cgi --enable-rewrite --enable-ssl --enable-mime-magic -...
本文为大家介绍 Apache多端口多站点的配置方法 配置httpd.conf 复制代码 代码如下: #监听多个端口 # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the VirtualHost # directive. # # Chan...
Xampp的下载地址: http://www.apachefriends.org/zh_cn/xampp.html下载xampp安装即可,我安装的是windows版本的Installer安装包,只要根据它的安装提示一路安装下去就可以了。 不过,安装目录最好选择C盘之外的其它磁盘,据某些网友的经验,在Windonws7或Vi...
Apache的默认站点目录 apache安装好后,默认的站点目录位于其安装目录下的htdocs文件夹内,默认首页是该文件夹的index.html文件。 比如,我的Apache是安装在C:/wamp/bin/apache/Apache2.2.21内,那么我的Apache的完整的默认站点目录地址就是C:/wamp/bin/apac...
虚拟主机的配置 基于IP地址的虚拟主机配置 复制代码 代码如下: Listen 80 DocumentRoot /www/it ServerName www.it.net.cn DocumentRoot /www/it ServerName it.net.cn 基于IP和多端口的虚拟主机配置 复制代码 代码如下: Listen 172.20.30.40:80 Listen 172....
一些用于分析apache日志的命令行。 说明: 1.日志预先设定好按日生成文件:CustomLog |/opt/apache/bin/rotatelogs /opt/apache/logs/www.website.com-access_log.%Y-%m-%d 86400 common 2.日志格式:61.135.194.120 - - [08/Aug/2011:08:00:28 +0800] GET /...
查看Apache加载的模块,就一条命令。 .apachectl -t -D DUMP_MODULES apache2: Could not reliably determine the servers fully qualified domain name, using 127.0.1.1 for ServerName Loaded Modules: core_module (static) log_config_module (static)...
有时需要在nginx,apache,mysql,php编译完了之后,查看一下原来的编译参数,本文中介绍的方法可以帮到您。 一、nginx编译参数: #/usr/local/nginx/sbin/nginx -V nginx version: nginx/0.6.32 built by gcc 4.1.2 20071124 (Red Hat 4.1.2-42) configure...
Apache能够占领Web服务器半壁江山的一个重要原因就是它可以提供一个安全的Web操作环境。 Apache团体为保证其安全性做了大量的工作。想当年,在此产品被发现存在一个安全缺陷时,Apache的开发人员就尽快地搞出了一个补...
一.Centos 系统安全方面 1、用防火墙关闭不须要的任何端口,别人PING不到服务器,威胁自然减少了一大半 2、更改SSH端口,最好改为10000以上,别人扫描到端口的机率也会下降 3、删除系统臃肿多余的账号: userdel adm userdel lp userdel sync userdel shutdo...