1. What is nginx?
Introduction
Nginx ("engine X") is a high-performance HTTP and reverse proxy server and an IMAP/POP3/SMTP proxy server. Nginx was developed by the rambler.ru site with the highest access volume in Russia as Igor Sysoev. It has been running on this site for more than two and a half years. Igor publishes source code in the form of a class BSD license. Despite being a beta version, nginx is well known for its stability, rich feature sets, sample configuration files, and low system resource consumption. For more information, see the official wiki: http://wiki.codemongers.com/NginxChs
Advantages of nginx
As an HTTP server, nginx has the following basic features:
- Process static files, index files, and automatic indexing;
Reverse Proxy acceleration (no cache), simple load balancing and fault tolerance;
FastCGI, simple load balancing and fault tolerance;
Modular structure. Filters include gzipping, byte ranges, chunked responses, and SSI-filter. In the SSI filter, multiple sub-requests of the same proxy or FastCGI are concurrently processed;
SSL and tls sni support;
That's simple. Let's go to Google.
2. What is FastCGI?
Introduction:
Like CGI, FastCGI is a standard for web servers and external program interfaces. It is a technology developed to solve CGI performance problems.
FastCGI has improved the CGI technology. A FastCGI process is created at the startup of the Web server or at the first request of the client. It does not terminate after processing the client request, but waits for the next request to be processed. In addition, the FastCGI program interacts with the CGI program and the server in different ways. The CGI program interacts with each other through environment variables, command lines, and standard input and output, therefore, the CGI program process must be on the same physical computer as the server process, while the FastCGI program interacts with the server process through a network connection. Therefore, the FastCGI program can be distributed on different computers, this not only improves the performance, but also improves the system's scalability.
3. What is mono?
Mono is a collective and spontaneous development project designed to develop an open-source microsfot for Linux.. NET development platform. as an organic. net, which includes a C # compiler, a runtime environment of a public language, and a complete set of related class libraries. the mono project will be developed by developers.. NET applications can not only run on Windows platforms, but also on any mono-supported platforms, including Linux and UNIX. the mono project will enable you to develop various cross-platform applications and greatly improve the development efficiency in the Open Source Field.
Here is a brief introduction. go to Google ..
All of the above are from the network ..
Enter the topic...
Deploy nginx + mono + FastCGI in Windows to deploy the Asp.net website
Download nginx: To download the nginx version
Download mono platform: Download mono ..
1. Create an Asp.net website in vs. This is called nginxsite.
2, I downloaded the nginx-0.8.54 .. nginx-0.9.4 on my win7 can not run up ..
Decompress the package and open the nginx. conf file in the conf folder.
Configure the following nodes:
HTTP {
Include mime. types;
Default_type application/octet-stream;
# Log_format main '$ remote_addr-$ remote_user [$ time_local] "$ request "'
# '$ Status $ body_bytes_sent "$ http_referer "'
# '"$ Http_user_agent" "$ http_x_forwarded_for "';
# Access_log logs/access. Log main;
Sendfile on;
# Tcp_nopush on;
# Keepalive_timeout 0;
Keepalive_timeout 65;
# Gzip on;
Server {
Listen 80;
SERVER_NAME localhost;
# Charset koi8-r;
# Access_log logs/host. Access. Log main;
Location /{
Root nginxsite;
# Index index.html index.htm;
Fastcgi_pass 127.0.0.1: 8000;
Fastcgi_param script_filename $ document_root/$ fastcgi_script_name;
Include fastcgi_params;
}
Error_page 500 502 503 x.html;
Location =/50x.html {
Root HTML;
}
Location ~ . * \. Aspx $ {
Root nginxsite;
Fastcgi_pass 127.0.0.1: 8000;
# Fastcgi_index default. aspx;
Fastcgi_param script_filename $ document_root/$ fastcgi_script_name;
Include fastcgi_params;
}
# Static Resources
Location ~ ^/CSS /{
Root c: \ nginx \ mono_mvc3;
Expires 4D;
}
# Set the address for viewing nginx status
Location/nginxstatus {
Stub_status on;
Access_log on;
Auth_basic "nginxstatus ";
Auth_basic_user_file CONF/htpasswd;
}
}
3. After configuration, enter D: \ Program Files \ mono-2.10 \ bin> in the command line.
Input fastcgi-mono-server4/socket = TCP: 127.0.0.1: 8000/root = "C: \ nginx \ nginxsite"/applications =/:./multiplex = true/Port = 8080
C: \ nginx \ nginxsite is the root directory of the website under nginx.
Start the service ..
4. Double-click nginx.exe on nginxto enable services in the background.
5. Enter http: // 127.0.0.1 in the browser to browse the website.
Next study how to deploy a virtual machine in Linux ..
----------------------------------------
PS: very depressing. The website deployed in this way is different from the page style when you browse the page under ..