Netkiller Linux Web 手札
Apache, Lighttpd, Nginx, Resin, Tomcat, Jboss, Zope...
版权 © 2010, 2011, 2012 Netkiller(Neo Chan). All rights reserved.
版权声明
转载请与作者联系,转载时请务必标明文章原始出处和作者信息及本声明。
|
|
2010-11-18
下面是我多年积累下来的经验总结,整理成文档供大家参考:
目录
自述 1. 内容简介 2. 作者简介 3. 支持这个项目(Support this project) 4. 获得文档 1. LAMP 1. Install 1.1. Quick install apache with aptitude 1.1.1. command 1.1.2. rewrite module 1.1.3. PHP module 1.1.4. deflate module 1.1.5. ssl module 1.1.6. VirtualHost 1.1.7. ~userdir module - /public_html 1.2. PHP 5 1.3. Compile and then install Apache 1.3.1. Apache 安装与配置 1.3.2. 优化编译条件 1.3.3. PHP 1.3.4. Automation Installing 1.4. XAMPP 1.4.1. XAMPP for Linux 1.4.2. php5 2. Module 2.1. Output a list of modules compiled into the server. 2.2. Core 2.2.1. Listen 2.2.2. Filesystem and Webspace 2.2.2.1. Options 2.2.3. Etag 2.2.4. 隐藏 Apache 版本信息 2.3. worker 2.4. Apache Log 2.4.1. LogLevel 2.4.2. LogFormat 2.4.3. Compressed 2.4.4. rotatelogs - Piped logging program to rotate Apache logs 2.4.5. cronolog 2.4.6. 日志合并 2.4.7. 日志归档 2.4.8. logger 2.4.9. other 2.5. mod_access 2.6. VirtualHost 2.6.1. ServerName/ServerAlias 2.6.2. rotatelogs 2.7. Alias / AliasMatch 2.8. Redirect / RedirectMatch 2.9. Rewrite 2.9.1. R=301 2.9.2. Rewrite + JkMount 2.9.3. Apache redirect domain.com to www.domain.com 2.9.4. 正则匹配扩展名 2.10. Proxy 2.10.1. Reverse proxy 2.11. Deflate 2.11.1. 测试 gzip,deflate 模块 2.12. Expires 2.13. Cache 2.13.1. mod_disk_cache 2.13.2. mod_mem_cache 2.14. usertrack 2.15. Charset 2.16. Dir 2.17. Includes 2.18. Apache Status 2.19. Mod Perl 2.20. Module FAQ 2.21. mod_setenvif 2.22. PHP 程序安全问题 php_admin_value 3. 设置Apache实现防盗连 4. Error Prompt 4.1. Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration 4.2. Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration 2. Lighttpd 1. 安装Lighttpd 1.1. quick install with aptitude 1.2. yum install 1.3. to compile and then install lighttpd 1.3.1. shell script 2. /etc/lighttpd/lighttpd.conf 2.1. max-worker / max-fds 2.2. accesslog.filename 2.3. ETags 2.4. server.tag 3. Module 3.1. simple_vhost 3.2. ssl 3.3. redirect 3.4. rewrite 3.4.1. Lighttpd Rewrite QSA 3.5. alias 3.6. auth 3.7. compress 3.8. expire 3.9. status 3.10. setenv 3.10.1. Automatic Decompression 3.11. fastcgi 3.11.1. enable fastcgi 3.11.1.1. spawn-fcgi 3.11.1.2. php-fpm 3.11.2. PHP 3.11.2.1. 编译安装PHP 3.11.2.2. apt-get install 3.11.3. Python 3.11.3.1. Django 3.11.3.2. Python Imaging Library 3.11.4. Perl 3.11.4.1. Installing lighttpd and FastCGI for Catalyst 3.11.5. Ruby 3.12. user-agent 4. 其他模块 4.1. mod_secdownload 防盗链 5. Example 5.1. s-maxage 3. Nginx 1. Installing 1.1. Installing by apt-get under the debain/ubuntu 1.2. CentOS 1.3. installing by source 1.4. config test 1.5. rotate log 1.5.1. log shell 1.5.2. /etc/logrotate.d/nginx 2. fastcgi 2.1. spawn-fcgi 2.2. php-fpm 2.2.1. php5-fpm 2.2.2. 编译 php-fpm 3. worker_processes 4. events 5. 可用的全局变量 6. http 配置 6.1. X-Forwarded-For 6.2. server 6.2.1. VirtualHost (虚拟主机) 6.2.2. location 6.2.3. ssl 6.3. expires 6.4. access 6.5. auth_basic 6.6. autoindex 6.7. ssi 6.8. rewrite 6.9. gzip 6.10. Cache 6.11. stub_status 6.12. server_tokens 6.13. add_header 6.14. valid_referers 7. Proxy 7.1. request_filename + proxy_pass 4. Tomcat 安装与配置 1. 安装Tomcat 1.1. install java 1.2. install tomcat 1.2.1. tomcat-native 1.3. 同时运行多实例 1.4. Connector 1.4.1. server.xml 1.4.2. mod_jk 1.4.3. mod_proxy_ajp 1.4.4. RewriteEngine 连接 Tomcat 1.5. Testing file 2. 配置 Tomcat 服务器 2.1. server.xml 2.1.1. compression 2.1.2. useBodyEncodingForURI 2.1.3. HTTPS 2.1.4. 隐藏Tomcat版本信息 2.1.5. vhost 2.1.6. access_log 2.2. tomcat-users.xml 2.3. logging.properties 3. Init.d Script 3.1. Script 1 3.2. Shell Script 2 5. Resin 1. 安装Resin 1.1. 直接使用 1.2. Debian/Ubuntu 1.3. 源码安装Resin 2. Compiling mod_caucho.so 3. resin.conf 3.1. Maximum number of threads 3.2. Configures the keepalive 3.3. ssl 4. virtual hosts 4.1. explicit host 4.2. regexp host 4.3. host-alias 4.4. configures a deployment directory for virtual hosts 4.5. Resources 5. FAQ 5.1. java.lang.OutOfMemoryError: PermGen space 6. Application Server 1. Zope 2. JBoss - JBoss Enterprise Middleware 7. Search Engine 1. Solr 1.1. Embedded Jetty 1.2. Jetty 1.3. Tomcat 1.4. solr-php-client 1.5. multicore 1.6. 中文分词 1.6.1. ChineseTokenizerFactory 1.6.2. CJK 1.6.3. mmseg4j 1.6.4. 中文分词“庖丁解牛” Paoding Analysis 2. Nutch 3. Lucene 4. MG4J 5. PhpDig 6. Sphinx 7. Mahout 8. Web Server Optimization 1. ulimit 1.1. open files 2. Memcached 2.1. 编译安装 2.2. debian/ubuntu 3. khttpd 4. php.ini 4.1. Resource Limits 4.2. File Uploads 4.3. Session Shared 4.4. PATHINFO 5. APC Cache (php-apc - APC (Alternative PHP Cache) module for PHP 5) 6. Zend Optimizer 7. eaccelerator 9. varnish - a state-of-the-art, high-performance HTTP accelerator 1. Varnish Install 2. varnish utility 2.1. status 2.2. varnishadm 2.2.1. 清除缓存 2.3. varnishtop 2.4. varnishhist 2.5. varnishsizes 3. log file 4. Varnish Configuration Language - VCL 5. example 10. Traffic Server 1. Install 2. Configure 11. Cherokee 1. Installing Cherokee 12. Jetty 13. Other Web Server 1. Python SimpleHTTPServer 14. web 服务器排名 1. HTTP状态码