Nginx Running mono Web (ASP)

Source: Internet
Author: User

The Mono Web can be run in addition to using the Apache/mod_mono mode, but also by using the nginx/fastcgi mode.

The Nginx configuration of ASP. NET is simpler and more useful, can be run through fastcgi asp, PHP, and so on, through the reverse proxy load balancer, you can also run the Python web.

Take Ubuntu as an example

Configure Nginx (/etc/nginx/sites-available/default) to let the site root directory run in fastcgi mode

server {    a;     /usr/share/nginx/www;    Index index.html index.htm;    server_name localhost;     /var/log/nginx/chat.log;     / {        /var/www/chat;         default default . html;         Default . aspx;         127.0.0.1:8099;         /etc/nginx/fastcgi_params;    }}

Edit/etc/nginx/fastcgi_params

Fastcgi_param    path_info        "";                        Fastcgi_param    script_filename        $document _root$fastcgi_script_name;

Installing the Fastcgi-mono-server4 module

Apt-get Install Fastcgi-mono-server4

Run fastcgi Mono

fastcgi-mono-server4/applications=/:/var/www/chat//socket=tcp:127.0.0.1:8099
# just via domain visitfastcgi-mono-server4/applications=www.domain.com:/:/var/www/chat//socket=tcp : 127.0.0.1:8099

Note: Applications={url Access address path}:{physical path}, consistent with the above Nginx Config, URL access address can use the domain name. This address configuration error, will be reported exception "No application Found" matching

Nginx Running mono Web (ASP)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.