Home | Mirror | Search

Netkiller Linux Web 手札

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

Mr. Neo Chan, 陳景峰(BG7NYT)


中國廣東省深圳市龍華新區民之街道溪山美地
518109
+86 13113668890
+86 755 29812080

$Id: book.xml 502 2012-12-05 11:02:04Z netkiller $

版權聲明

轉載請與作者聯繫,轉載時請務必標明文章原始出處和作者信息及本聲明。

文檔出處:
http://netkiller.sourceforge.net
http://netkiller.github.com

$Date: 2012-12-05 19:02:04 +0800 (Wed, 05 Dec 2012) $


您可以使用iBook閲讀當前文檔

目錄

自述
1. 系列文檔
2. 作者簡介
3. 寫給讀者
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. mod_pagespeed -
2.21. Module FAQ
2.22. mod_setenvif
2.23. 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. http 配置
5.1. X-Forwarded-For
5.2. server
5.2.1. VirtualHost (虛擬主機)
5.2.2. location
5.2.3. ssl
5.3. expires
5.4. access
5.5. auth_basic
5.6. autoindex
5.7. ssi
5.8. rewrite
5.9. gzip
5.10. Cache
5.11. stub_status
5.12. server_tokens
5.13. add_header
5.13.1. Access-Control-Allow
5.14. valid_referers
6. Proxy
6.1. request_filename + proxy_pass
6.2. proxy_cache
6.3. proxy_cache
6.4. expires
6.5. X-Sendfile
6.6. FAQ
7. 可用的全局變數
7.1. http_user_agent
7.1.1. 禁止非瀏覽器訪問
7.2. request_filename
7.3. request_uri
8. FAQ
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. elasticsearch
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
4.1. unset / set
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狀態碼

範例清單

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
4.1. /etc/profile.d/java.sh
4.2. /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
7.1. /etc/profile.d/java.sh
8.1. /etc/init.d/memcached
9.1. default.vcl
comments powered by Disqus