Nginx is the world's top lightweight WEB server. More and more popular with website developers. Major Chinese websites have also adopted nginx as the production environment.
Share:
- # Asp (aspx) supports transferring client requests to IIS
- Location ~ * \. (Asp | aspx | asa) <# WebPartBody #> nbsp ;{
- Root D:/wwroot;
- Index. asp index. aspx;
- Proxy_pass http: // 127.0.0.1: 88;
- Proxy_set_header X-Real-IP $ remote_addr;
- }
Put the above section in nginx. conf. The range is in the Serer section where you need to support ASP sites. The second step is to enable the IIS Site. Port 88 (which can be modified by yourself). The site points to the site corresponding to nginx settings. In this way.
The following is a full article on the page I found, which may also be useful to you:
The following is the nginx configuration file. You must modify the default port of IIS no matter whether IIS is installed first or later, and then modify the IIS-related port in the configuration file accordingly.
- # Asp (aspx) supports transferring client requests to IIS
- Location ~ * \. (Asp | aspx | asa) <# WebPartBody #> nbsp ;{
- Root/host/wwwroot/www;
- Index. asp index. aspx;
- Proxy_pass http: // 127.0.0.1: 88;
- Proxy_set_header X-Real-IP $ remote_addr;
- }
- # Java (jsp) support: Transfers client requests to resin
- Location ~ * \. (Jsp | do) <# WebPartBody #> nbsp ;{
- Root/host/wwwroot/www;
- Index. jsp index. do;
- Proxy_pass http: // 127.0.0.1: 8080;
- Proxy_set_header X-Real-IP $ remote_addr;
- }
- # Forward client requests to fastcgi
- Location ~ . * \. (Php | php5 | php4 | shtml | xhtml | phtml | htm | html | shtml | shtm )? <# WebPartBody #> nbsp ;{
- Fastcgi_pass 127.0.0.1: 9000;
- Include/host/nginx/conf/fastcgi_params;
- }
The purpose is to use nginx's processing capabilities to deliver php and static pages to nginx for processing. iis is only responsible for processing asp and aspx-related content, and resin is only responsible for processing java-related content, all content is output from port 80 of nginx
This link provides a solution
Http://mkdot.net/blogs/slavco/archive/2010/01/23/11726.aspx
Http://zhangguofuwangyi.blog.163.com/blog/static/17175948720109461452894/