In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to configure Nginx reverse proxy under Linux, the article is very detailed, has a certain reference value, interested friends must read it!
The reverse proxy function is one of the three main functions of nginx, and a reverse proxy server is a proxy server that manages connections or any specific requests from the external network to the internal network. It protects, routes, and manages traffic from external networks to internal networks, Web servers, or private networks.
img1. Upgrade the system, uninstall Apache, release port 80 Yum update -yYum remove httpd -y2, install EPEL reportpm-Uvh http://mirror.ancl.hawaii.edu/linux/epel/6/i386/epel-release-6-8.noarch.rpmEPEL repo Download address: https://fedoraproject.org/wiki/EPEL3, install Nginx, and set
install Nginx
yum install nginx -y Adjust Nginx configuration
The requested URL/etc/nginx/conf.dmv/default.conf/was not found on this serveryourdomain.com
Paste the following:
server {listen 80;server_name yourdomain.com;access_log off; error_log off; location / {proxy_pass http://server IP/;proxy_redirect off;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_max_temp_file_size 0;client_max_body_size 10m;client_body_buffer_size 128k;proxy_connect_timeout 90;proxy_send_timeout 90; proxy_read_timeout 90;proxy_buffer_size 4k;proxy_buffers 4 32k; proxy_busy_buffers_size 64k;proxy_temp_file_write_size 64k;}}
And then save it.
5, Set firewall, Allow port 80 to access iptables -I INPUT 5 -m state --state NEW -p tcp --dport 80 -j ACCEPTservice iptables saveservice iptables restart6, Start Nginx service nginx start Above is "How to configure Nginx reverse proxy under Linux" All the contents of this article, Thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.