Configuring Nginx status information Virtual host

Source: Internet
Author: User

[[Email protected]]# cat>>nginx_vhosts.conf<<eof

Server

{

Listen 80;

server_name status.etiantian.org;

Location/{

Stub_status on;

Access_log off;

}

}

Eof

[Email protected]]#. /sbin/nginx-t

Nginx:theconfiguration File/application/nginx-1.10.1/conf/nginx.confsyntax is OK

Nginx:configuration File/application/nginx-1.10.1/conf/nginx.conftest is successful

[Email protected]]#. /sbin/nginx-s Reload

[Email protected]]# netstat-lnt #或者 netstat-lnt|grep

Active internetconnections (only servers)

Proto recv-qsend-q Local address Foreign address state

TCP 0 0 0.0.0.0:892 0.0.0.0:* LISTEN

TCP 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN

TCP 0 0 0.0.0.0:32803 0.0.0.0:* LISTEN

TCP 0 0 127.0.0.1:199 0.0.0.0:* LISTEN

TCP 0 0 0.0.0.0:875 0.0.0.0:* LISTEN

TCP 0 0 0.0.0.0:111 0.0.0.0:* LISTEN

TCP 0 0 0.0.0.0:80 0.0.0.0:* LISTEN

TCP 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

TCP 0 0 0.0.0.0:59448 0.0.0.0:* LISTEN

TCP 0 0::: 892:::* LISTEN

TCP 0 0::: 2049:::* LISTEN

TCP 0 0::: 32803:::* LISTEN

TCP 0 0:: ffff:127.0.0.1:8005:::* LISTEN

TCP 0 0::: 8009:::* LISTEN

TCP 0 0::: 57707:::* LISTEN

TCP 0 0::: 111:::* LISTEN

TCP 0 0::: 8080:::* LISTEN

TCP 0 0::: $:::*

The hosts file resolves the status.etinantian.org

192.168.47.133 www.etiantian.org bbs.etiantian.org blog.etiantian.org etiantian.org

192.168.47.133 status.etiantian.org

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/83/5C/wKiom1dxN7GB5jYjAABaloEKv94301.png " Title= "Untitled. png" alt= "Wkiom1dxn7gb5jyjaabaloekv94301.png"/>


This article is from the "sky9890" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1793453

Configuring Nginx status information Virtual host

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.