- 1995年,美国国家计算机安全协会(NCSA)的开发者创建了NCSZ全球网络服务软件。
- Apache 源于 A patchy server的 读音,意思是充满补丁的服务器。
- Apache 特点
- 支持最新的HTTP1.1协议
- 支持PHP、CGI、Java servlets、FastCGI
- 支持安全socket层
- 集成了perl脚本编程语言
- 支持ssl和虚拟主机
- 实现动态共享对象,允许在运行时动态加载功能模块
- 具有安全、有效和易于扩展等特征
· httpd-suexec-2.0.52-9.ent
· system-config-httpd-1.3.1-1
· httpd-manual-2.0.52-9.ent
· 看到Red Hat Enterprise Linux Test Page
· /var/www/cgi-bin CGI程序文件
· /var/www/usage webalizer程序文件
· /etc/httpd/conf 服务器配置文件目录
· /etc/httpd/conf/httpd.conf 主配置文件
· /usr/share/doc/httpd-2.0.52/ 服务器文档
· /etc/rc.d/init.d/httpd status
· /etc/rc.d/init.d/httpd restart
· vi /etc/httpd/conf/httpd.conf
· ServerRoot “/etc/httpd“ 服务器配置文件及日志文件的位置
· KeepAlive ON 提高性能, 允许保持连接
· MaxKeepAliveRequests 100 连接提出请求的数量,0表无限
· KeepAliveTimeout 15 两次请求的时间间隔
· StartServers 8 服务器启动时运行的进程数
· MaxSpareServers 20 空闲进程数
· MaxRequestsPerChild 4000 子进程所请求的数量
· 'Main' server configuration
· ServerName new.host.name:80 主机名称,会送到对端
· DocumentRoot “/var/www/html“ 网页存放的根目录
· DirectoryIndex index.html index.html.var默认索引文件
· ServerAdmin webmaster@linux.com.cn 管理员信箱
· DocumentRoot /www/linux.com.cn/html 网页的根目录
· ServerName www.linux.com.cn 虚拟主机名
· ErrorLog logs/www/linux.com.cnlerror_log 日志文件
· CustomLog logs/www/linux.com.cn/access_log common
· Alias /doc/ "/usr/share/doc/"
· Options Indexes MultiViews
· Options FollowSymLinks 允许符号连接
· AllowOverride None 禁止访问
· Options Indexes FollowSymLinks索引、符号连接
· AllowOverride None 禁止读取
· Order allow,deny 先允许后禁止
· Allow from all(10.10.1.) 全部允许规则
|