Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

部分 IV. Web Application

目录

35. Nginx
35.1. Installing
35.1.1. Netkiller OSCM 一键安装 (CentOS 7)
35.1.2. Installing by apt-get under the debain/ubuntu
35.1.3. CentOS
35.1.4. installing by source
35.1.5. CentOS 7
35.1.6. Mac
35.1.7. rotate log
35.2. Nginx 命令
35.2.1. -V show version and configure options then exit
35.2.2. -t : test configuration and exit
35.2.3. test configuration, dump it and exit
35.3. nginx.conf 配置文件
35.3.1. 处理器配置
35.3.2. events 配置
35.3.3. Nginx 变量
35.4. http 配置
35.4.1. 缓冲区相关设置
35.4.2. 超时设置
35.4.3. gzip
35.4.4. server_tokens
35.4.5. ssi
35.4.6. DNS 解析
35.4.7. rewrite
35.5. server
35.5.1. listen
35.5.2. server_name 配置
35.5.3. location
35.5.4. root 通过$host智能匹配目录
35.5.5. try_files
35.5.6. SSL 虚拟主机
35.5.7. HTTP2 配置 SSL证书
35.5.8. expires
35.5.9. access
35.5.10. autoindex
35.5.11. return
35.5.12. add_header
35.5.13. client_max_body_size 上传文件尺寸限制
35.6. upstream 负载均衡
35.6.1. weight 权重配置
35.6.2. backup 实现热备
35.7. Proxy
35.7.1. proxy_cache
35.7.2. rewrite + proxy_pass
35.7.3. request_filename + proxy_pass
35.7.4. $request_uri 与 proxy_pass 联合使用
35.7.5. try_files 与 proxy_pass 共用
35.7.6. Proxy 与 SSI
35.7.7. Host
35.7.8. expires
35.7.9. X-Forwarded-For
35.7.10. X-Sendfile
35.7.11. proxy_http_version
35.7.12. proxy_set_header
35.7.13. 隐藏头部信息
35.7.14. 忽略头
35.7.15. proxy_pass_request_headers 透传 Header
35.7.16. timeout 超时时间
35.7.17. sub_filter 文本替换
35.7.18. 站外代理
35.7.19. example
35.7.20. HTTP Auth 认证冲突
35.8. fastcgi
35.8.1. spawn-fcgi
35.8.2. php-fpm
35.9. 免费 SSL 证书
35.9.1. 手工生成证书
35.9.2. 证书更新
35.10. 单域名虚拟主机
35.11. Nginx module
35.11.1. stub_status 服务器状态采集模块
35.11.2. sub_filter 页面中查找和替换
35.11.3. auth_basic HTTP 认证模块
35.11.4. valid_referers
35.11.5. ngx_http_flv_module
35.11.6. ngx_http_mp4_module
35.11.7. limit_zone
35.11.8. image_filter
35.11.9. ngx_stream_proxy_module
35.11.10. ngx_http_mirror_module
35.11.11. limit_except
35.11.12. geoip_country_code
35.12. Example
35.12.1. Nginx + Tomcat
35.12.2. 拦截index.html
35.12.3. Session 的 Cookie 域处理
35.13. FAQ
35.13.1. 405 Not Allowed?
35.13.2. 413 Request Entity Too Large
35.13.3. 499 Client Closed Request
35.13.4. 502 Bad Gateway?
35.13.5. 504 Gateway Time-out
35.13.6. proxy_pass
35.13.7. proxy_pass SESSION 丢失问题
35.13.8. [alert] 55785#0: *11449 socket() failed (24: Too many open files) while connecting to upstream
35.13.9. server_name 与 SSI 注意事项
35.13.10. location 跨 document_root 引用,引用 document_root 之外的资源
35.13.11. nginx: [warn] duplicate MIME type "text/html" in /etc/nginx/nginx.conf
35.13.12. 127.0.0.1:8080 failed
35.13.13. failed (13: Permission denied) while connecting to upstream
35.13.14. upstream sent too big header while reading response header from upstream
35.13.15. 很目录 index.html 正常访问,其他文件都是 404
35.13.16. nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead
36. Openresty
36.1. 安装 Openresty
36.1.1. 源码安装
36.2. Openresty 开发
36.2.1. Hello world!!!
36.2.2. 日期和时间
36.2.3. 数据结构
36.2.4. echo 输出
36.2.5. 参数处理
36.2.6. Nginx 变量
36.2.7. Json
36.2.8. Redis
36.2.9. Nginx 缓存
36.2.10. logs
36.3. 实现灰度发布
36.4. Redis
37. Caddy
37.1. 安装 Caddy
37.1.1. CentOS/Rocky Linux/AlmiLinux
37.2. 命令行
37.2.1. 启动 Caddy
37.2.2. 文件服务器
37.3. /etc/caddy/Caddyfile
37.3.1. 监听地址
37.3.2. 反向代理
37.3.3. Let's Encrypt 免费 SSL 证书
37.3.4. 返回内容
38. Apache Tomcat
38.1. Tomcat 安装与配置
38.1.1. Tomcat 6
38.1.2. Tomcat 7
38.1.3. Java 8 + Tomcat 8
38.1.4. Tomcat 9/10
38.1.5. 防火墙配置
38.1.6. 同时运行多实例
38.1.7. Testing file
38.1.8. mod_jk
38.1.9. mod_proxy_ajp
38.1.10. RewriteEngine 连接 Tomcat
38.1.11. SSL 双向认证
38.2. 配置 Tomcat 服务器
38.2.1. server.xml
38.2.2. tomcat-users.xml
38.2.3. context.xml
38.2.4. logging.properties
38.2.5. catalina.properties
38.3. 虚拟主机配置
38.3.1. 方案一
38.3.2. 方案二
38.3.3. Alias 别名
38.3.4. access_log
38.3.5. Context 配置
38.3.6. 主机绑定IP地址
38.4. SSI
38.5. Logging 日志
38.5.1. 开启 debug 模式
38.5.2. 切割 catalina.out 日志
38.6. Init.d Script
38.6.1. Script 1
38.6.2. Shell Script 2
39. Apache httpd
39.1. Install
39.1.1. Quick install apache with aptitude
39.1.2. CentOS 6
39.1.3. Compile and then install Apache
39.1.4. XAMPP
39.2. Module
39.2.1. Output a list of modules compiled into the server.
39.2.2. Core
39.2.3. mpm
39.2.4. Apache Log
39.2.5. mod_access
39.2.6. VirtualHost
39.2.7. Alias / AliasMatch
39.2.8. Redirect / RedirectMatch
39.2.9. Rewrite
39.2.10. Proxy
39.2.11. Deflate
39.2.12. Expires
39.2.13. Cache
39.2.14. usertrack
39.2.15. Charset
39.2.16. Dir
39.2.17. Includes
39.2.18. Apache Status
39.2.19. Mod Perl
39.2.20. mod_pagespeed -
39.2.21. Module FAQ
39.2.22. mod_setenvif
39.2.23. PHP 程序安全问题 php_admin_value
39.2.24. mod_spdy
39.3. 设置Apache实现防盗连
39.4. .htaccess
39.5. Error Prompt
39.5.1. Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
39.5.2. Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration
40. Lighttpd
40.1. 安装Lighttpd
40.1.1. quick install with aptitude
40.1.2. yum install
40.1.3. to compile and then install lighttpd
40.2. /etc/lighttpd/lighttpd.conf
40.2.1. max-worker / max-fds
40.2.2. accesslog.filename
40.2.3. ETags
40.2.4. server.tag
40.3. Module
40.3.1. simple_vhost
40.3.2. ssl
40.3.3. redirect
40.3.4. rewrite
40.3.5. alias
40.3.6. auth
40.3.7. compress
40.3.8. expire
40.3.9. status
40.3.10. setenv
40.3.11. fastcgi
40.3.12. user-agent
40.3.13. spdy
40.4. 其他模块
40.4.1. mod_secdownload 防盗链
40.5. Example
40.5.1. s-maxage
41. Resin
41.1. 安装Resin
41.1.1. 直接使用
41.1.2. Debian/Ubuntu
41.1.3. 源码安装Resin
41.2. Compiling mod_caucho.so
41.3. resin.conf
41.3.1. Maximum number of threads
41.3.2. Configures the keepalive
41.3.3. ssl
41.4. virtual hosts
41.4.1. explicit host
41.4.2. regexp host
41.4.3. host-alias
41.4.4. configures a deployment directory for virtual hosts
41.4.5. Resources
41.5. FAQ
41.5.1. java.lang.OutOfMemoryError: PermGen space
42. Application Server
42.1. Zope
42.2. JBoss - JBoss Enterprise Middleware
43. Web Server Optimization
43.1. ulimit
43.1.1. open files
43.2. khttpd
43.3. php.ini
43.3.1. Resource Limits
43.3.2. File Uploads
43.3.3. Session Shared
43.3.4. PATHINFO
43.4. APC Cache (php-apc - APC (Alternative PHP Cache) module for PHP 5)
43.5. Zend Optimizer
43.6. eaccelerator
44. varnish - a state-of-the-art, high-performance HTTP accelerator
44.1. Varnish Install
44.2. varnish utility
44.2.1. status
44.2.2. varnishadm
44.2.3. varnishtop
44.2.4. varnishhist
44.2.5. varnishsizes
44.3. log file
44.4. Varnish Configuration Language - VCL
44.4.1. unset / set
44.5. example
45. Apache Traffic Server
45.1. Install
45.2. Configure
46. Cherokee
46.1. Installing Cherokee
47. Jetty
48. Other Web Server
48.1. Python SimpleHTTPServer
49. web 服务器排名
49.1. HTTP状态码
50. HTTP2
50.1. Chrome