Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

Netkiller Linux Web 手札

Apache, Lighttpd, Nginx, Resin, Tomcat, Jboss, Zope...

Mr. Neo Chan, 陈景峰(BG7NYT)


中国广东省深圳市龙华新区民治街道溪山美地
518131
+86 13113668890
+86 755 29812080

$Id: book.xml 559 2013-04-10 07:03:49Z netkiller $

版权声明

转载请与作者联系,转载时请务必标明文章原始出处和作者信息及本声明。

文档出处:
http://netkiller.github.io
http://netkiller.sourceforge.net

微信扫描二维码进入 Netkiller 微信订阅号

QQ群:128659835 请注明“读者”

$Date: 2013-04-10 15:03:49 +0800 (Wed, 10 Apr 2013) $


您可以使用iBook阅读当前文档

QQ群:128659835 请注明“读者”

目录

1. 自述
1.1. 系列文档
1.2. 作者简介
1.3. 写给读者
1. Apache httpd
1.1. Install
1.1.1. Quick install apache with aptitude
1.1.1.1. command
1.1.1.2. rewrite module
1.1.1.3. PHP module
1.1.1.4. deflate module
1.1.1.5. ssl module
1.1.1.6. VirtualHost
1.1.1.7. ~userdir module - /public_html
1.1.2. PHP 5
1.1.3. Compile and then install Apache
1.1.3.1. Apache 安装与配置
1.1.3.2. 优化编译条件
1.1.3.3. PHP
1.1.3.4. Automation Installing
1.1.4. XAMPP
1.1.4.1. XAMPP for Linux
1.1.4.2. php5
1.2. Module
1.2.1. Output a list of modules compiled into the server.
1.2.2. Core
1.2.2.1. Listen
1.2.2.2. Filesystem and Webspace
1.2.2.3. Etag
1.2.2.4. 隐藏 Apache 版本信息
1.2.3. mpm
1.2.3.1. event
1.2.3.2. worker
1.2.4. Apache Log
1.2.4.1. LogLevel
1.2.4.2. LogFormat
1.2.4.3. Compressed
1.2.4.4. rotatelogs - Piped logging program to rotate Apache logs
1.2.4.5. cronolog
1.2.4.6. 日志合并
1.2.4.7. 日志归档
1.2.4.8. logger
1.2.4.9. other
1.2.5. mod_access
1.2.6. VirtualHost
1.2.6.1. ServerName/ServerAlias
1.2.6.2. rotatelogs
1.2.7. Alias / AliasMatch
1.2.8. Redirect / RedirectMatch
1.2.9. Rewrite
1.2.9.1. R=301
1.2.9.2. Rewrite + JkMount
1.2.9.3. Apache redirect domain.com to www.domain.com
1.2.9.4. 正则匹配扩展名
1.2.10. Proxy
1.2.10.1. Reverse proxy
1.2.11. Deflate
1.2.11.1. 测试 gzip,deflate 模块
1.2.12. Expires
1.2.12.1. FilesMatch
1.2.12.2. Cache-Control
1.2.12.3. ETag
1.2.13. Cache
1.2.13.1. mod_disk_cache
1.2.13.2. mod_mem_cache
1.2.14. usertrack
1.2.15. Charset
1.2.16. Dir
1.2.17. Includes
1.2.18. Apache Status
1.2.19. Mod Perl
1.2.20. mod_pagespeed -
1.2.21. Module FAQ
1.2.22. mod_setenvif
1.2.23. PHP 程序安全问题 php_admin_value
1.2.24. mod_spdy
1.3. 设置Apache实现防盗连
1.4. .htaccess
1.5. Error Prompt
1.5.1. Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
1.5.2. Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration
2. Lighttpd
2.1. 安装Lighttpd
2.1.1. quick install with aptitude
2.1.2. yum install
2.1.3. to compile and then install lighttpd
2.1.3.1. shell script
2.2. /etc/lighttpd/lighttpd.conf
2.2.1. max-worker / max-fds
2.2.2. accesslog.filename
2.2.3. ETags
2.2.4. server.tag
2.3. Module
2.3.1. simple_vhost
2.3.2. ssl
2.3.3. redirect
2.3.4. rewrite
2.3.4.1. Lighttpd Rewrite QSA
2.3.5. alias
2.3.6. auth
2.3.7. compress
2.3.8. expire
2.3.9. status
2.3.10. setenv
2.3.10.1. Automatic Decompression
2.3.11. fastcgi
2.3.11.1. enable fastcgi
2.3.11.2. PHP
2.3.11.3. Python
2.3.11.4. Perl
2.3.11.5. Ruby
2.3.11.6. UNIX domain sockets
2.3.12. user-agent
2.3.13. spdy
2.4. 其他模块
2.4.1. mod_secdownload 防盗链
2.5. Example
2.5.1. s-maxage
3. Nginx
3.1. Installing
3.1.1. Installing by apt-get under the debain/ubuntu
3.1.2. CentOS
3.1.3. installing by source
3.1.4. config test
3.1.5. rotate log
3.1.5.1. log shell
3.1.5.2. /etc/logrotate.d/nginx
3.2. nginx 配置文件
3.2.1. events
3.2.2. http 配置
3.2.2.1. X-Forwarded-For
3.2.2.2. gzip
3.2.2.3. server_tokens
3.2.2.4. ssi
3.2.3. server
3.2.3.1. listen
3.2.3.2. 单域名虚拟主机
3.2.3.3. ssl 虚拟主机
3.2.3.4. 泛解析主机
3.2.3.5. location
3.2.3.6. expires
3.2.3.7. access
3.2.3.8. auth_basic
3.2.3.9. autoindex
3.2.3.10. try_files
3.2.3.11. stub_status
3.2.3.12. add_header
3.2.3.13. valid_referers
3.2.4. rewrite
3.2.4.1. http get 参数处理
3.2.5. fastcgi
3.2.5.1. spawn-fcgi
3.2.5.2. php-fpm
3.2.6. Proxy
3.2.6.1. proxy_cache
3.2.6.2. rewrite + proxy_pass
3.2.6.3. request_filename + proxy_pass
3.2.6.4. $request_uri 与 proxy_pass 联合使用
3.2.6.5. try_files 与 proxy_pass 共用
3.2.6.6. Proxy 与 SSI
3.2.6.7. Host
3.2.6.8. expires
3.2.6.9. X-Sendfile
3.2.6.10. proxy_http_version
3.2.6.11. proxy_set_header
3.2.6.12. timeout 超时时间
3.2.6.13. example
3.2.7. return
3.2.8. ngx_http_flv_module
3.2.9. ngx_http_mp4_module
3.2.10. limit_zone
3.2.11. Nginx 变量
3.2.11.1. http_user_agent
3.2.11.2. http_referer
3.2.11.3. request_filename
3.2.11.4. request_uri
3.2.11.5. remote_addr
3.2.11.6. 自定义变量
3.2.11.7. if 条件判断
3.3. Example
3.3.1. Nginx + Tomcat
3.4. FAQ
3.4.1. 405 Not Allowed?
3.4.2. 502 Bad Gateway?
3.4.3. 413 Request Entity Too Large
3.4.4. nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression
3.4.5. proxy_pass
3.4.6. proxy_pass SESSION 丢失问题
3.4.7. [alert] 55785#0: *11449 socket() failed (24: Too many open files) while connecting to upstream
3.4.8. server_name 与 SSI 注意事项
3.4.9. location 跨 document_root 引用,引用 document_root 之外的资源
4. Apache Tomcat
4.1. Tomcat 安装与配置
4.1.1. Tomcat 6
4.1.1.1. tomcat-native
4.1.2. Tomcat 7
4.1.2.1. Server JRE
4.1.2.2. Tomcat
4.1.3. Java 8 + Tomcat 8
4.1.4. 防火墙配置
4.1.5. 启动脚本
4.1.6. 同时运行多实例
4.1.7. Testing file
4.1.8. mod_jk
4.1.9. mod_proxy_ajp
4.1.10. RewriteEngine 连接 Tomcat
4.2. 配置 Tomcat 服务器
4.2.1. server.xml
4.2.1.1. Connector
4.2.1.2. Context
4.2.2. tomcat-users.xml
4.2.3. context.xml
4.2.4. logging.properties
4.3. 虚拟主机配置
4.3.1. 方案一
4.3.2. 方案二
4.3.3. Alias 别名
4.3.4. access_log
4.3.5. Context 配置
4.3.6. 主机绑定IP地址
4.4. SSI
4.5. Init.d Script
4.5.1. Script 1
4.5.2. Shell Script 2
5. Resin
5.1. 安装Resin
5.1.1. 直接使用
5.1.2. Debian/Ubuntu
5.1.3. 源码安装Resin
5.2. Compiling mod_caucho.so
5.3. resin.conf
5.3.1. Maximum number of threads
5.3.2. Configures the keepalive
5.3.3. ssl
5.4. virtual hosts
5.4.1. explicit host
5.4.2. regexp host
5.4.3. host-alias
5.4.4. configures a deployment directory for virtual hosts
5.4.5. Resources
5.5. FAQ
5.5.1. java.lang.OutOfMemoryError: PermGen space
6. Application Server
6.1. Zope
6.2. JBoss - JBoss Enterprise Middleware
7. Web Server Optimization
7.1. ulimit
7.1.1. open files
7.2. khttpd
7.3. php.ini
7.3.1. Resource Limits
7.3.2. File Uploads
7.3.3. Session Shared
7.3.4. PATHINFO
7.4. APC Cache (php-apc - APC (Alternative PHP Cache) module for PHP 5)
7.5. Zend Optimizer
7.6. eaccelerator
8. varnish - a state-of-the-art, high-performance HTTP accelerator
8.1. Varnish Install
8.2. varnish utility
8.2.1. status
8.2.2. varnishadm
8.2.2.1. 清除缓存
8.2.3. varnishtop
8.2.4. varnishhist
8.2.5. varnishsizes
8.3. log file
8.4. Varnish Configuration Language - VCL
8.4.1. unset / set
8.5. example
9. Apache Traffic Server
9.1. Install
9.2. Configure
10. Cherokee
10.1. Installing Cherokee
11. Jetty
12. Other Web Server
12.1. Python SimpleHTTPServer
13. web 服务器排名
13.1. HTTP状态码

范例清单

1.1. index.php
1.2. autolamp.sh
1.3. R=301
1.4. mod_perl.conf
2.1. /etc/init.d/lighttpd
2.2. lighttpd compress
2.3. lighttpd expire
2.4. fastcgi.conf
2.5. Cache
3.1. Expires Examples
3.2. nginx expires
3.3. Example: valid_referers
3.4. Nginx + Tomcat
4.1. /etc/profile.d/java.sh
4.2. tomcat firewall
4.3. /etc/init.d/tomcat
4.4. /etc/rc.d/init.d/www
5.1. explicit host in resin.conf
5.2. regexp host in resin.conf
5.3. host-alias in the resin.conf
5.4. host-alias in a /var/www/hosts/foo/host.xml
5.5. host-alias-regexp in the resin.conf
5.6. shared database in host
5.7. rewrite-dispatch
8.1. default.vcl
comments powered by Disqus