第80页 Nginx与JSP、ASP.NET、Perl的安装与配置
aneasystone (疯了,都疯了!)
读过 实战Nginx
- 章节名:Nginx与JSP、ASP.NET、Perl的安装与配置
- 页码:第80页
1. 基础库 yum -y install gcc gcc-c++ autoconf libjpeg[-devel] libpng[-devel] freetype[-devel] libxml2[-devel] zlib[-devel] glibc[-devel] glib2[-devel] bzip2[-devel] ncurses[-devel] curl[-devel] e2fsprogs[-devel] krb5[-devel] libidn[-devel] openssl[-devel] openldap[-devel] nss_ldap openldap-clients openldap-servers 2. PHP + FastCGI libiconv libmcrypt [+libltdl] mhash 3. Nginx -- 1. Nginx + Tomcat upstream tomcat_server { server 127.0.0.1:8080; } server { ... if (-d $request_filename) { rewrite ^/(.*)([^/])$ http://$host/$1$2/ permanent; } location ~ \.(jsp|jspx|do)?$ { proxy_set_header Host $host; proxy_set_header X-Forwared-For $remote_addr; proxy_pass http://tomcat_server; } ... } 2. Nginx + ASP.NET server { ... location ~ \.(aspx|asmx|ashx|asax|ascx|soap|rem|axd|cs|config|dll)?$ { fastcgi_pass 127.0.0.1:9001; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } ... } 3. Nginx + Perl server { ... location ~ \.(pl|perl|cgi)?$ { fastcgi_pass 127.0.0.1:9002; fastcgi_index index.cgi; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } ... }
aneasystone对本书的所有笔记 · · · · · ·
-
第19页 Nginx的信号控制
Ngin支持以下几种信号: TERM/INT:快速关闭; QUIT:从容关闭; HUP:平滑重启,重新加载配...
-
第35页 Nginx日志文件的切割
mv /path/to/nginx.log /path/to/nginx.log.bk kill -USR1 `cat /path/to/nginx.pid`
-
第80页 Nginx与JSP、ASP.NET、Perl的安装与配置
-
第166页 采用Nginx搭建FLV视频服务器
FLV视频可以采用两种方式发布,一种是普通的HTTP下载方式,另一种是基于Flash Media Server或...
-
第179页 Nginx核心模块
Nginx的模块分为核心模块、标准HTTP模块、可选HTTP模块、邮件模块、第三方模块和补丁。 其中...
说明 · · · · · ·
表示其中内容是对原文的摘抄