Home > Backend Development > PHP Tutorial > Reverse proxy Nagios with Nginx

Reverse proxy Nagios with Nginx

WBOY
Release: 2016-07-29 09:15:24
Original
1097 people have browsed it

1 Environment preparation

  • Operating system
<code>CentOS 7.0 x86_64</code>
Copy after login
  • Nginx version
<code>nginx-1.7.10</code>
Copy after login

2 Install Nginx

  • New user group and user
<code><span># useradd nginx -s /sbin/nologin</span><span># id nginx</span></code>
Copy after login
  • Install dependent files
<code>yum install pcre<span>-devel</span> openssl<span>-devel</span></code>
Copy after login
  • Install Nginx
<code><span># wget 'http://nginx.org/download/nginx-1.7.10.tar.gz'</span><span># tar xzvf nginx-1.7.10.tar.gz</span><span># cd nginx-1.7.10</span><span># </span><span># ./configure   --prefix=/home/nginx --user=nginx --group=nginx --with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre</span><span># make && make install</span></code>
Copy after login

3 Configure reverse proxy

  • Modify nginx.conf
<code>        location /nagios {
            proxy_pass    http:<span>//192.168.10.51:8000/nagios;</span>
        }</code>
Copy after login
  • Start nginx
<code><span># cd /home/nginx</span><span># ./sbin/nginx -c ./conf/nginx.conf</span></code>
Copy after login

Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

The above introduces the use of Nginx reverse proxy Nagios, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template