Three installation methods of nginx

Nginx is a lightweight web server, reverse proxy server. Compared with Apache and lighttpd, it has the advantages of less memory and higher stability. Its most common use is to provide reverse proxy services. 1. Installation package compilation and installation 2.yum source installation 3. Use docker to install You need to confi ...

Posted by jennifer_ann on Sun, 15 Dec 2019 08:08:14 -0800

SaltStack automatic deployment keepalived to achieve high availability of haproxy

Experimental environment rhel6.5 serevr1 salt-master,salt-minion keepalived+haproxy ip:172.25.254.100 server4 salt-minion keepalived+haproxy ip :172.25.254.104 server2 salt-minion ip:172.25.254.102 server3 salt-minion ip:172.25.254.103 Virtual IP 172.25.254.200 See https://blog.csdn.net/weixin_/article/details/834 ...

Posted by varzosu on Sat, 14 Dec 2019 12:55:02 -0800

Nginx virtual host based on host domain name

1. Copy the Nginx configuration file [root@localhost ~]# cd /etc/nginx/conf.d/ [root@localhost conf.d]# cp default.conf default1.conf 2. Modify the configuration file default.conf [root@localhost conf.d]# vim default.conf server { listen 80; server_name www.host.com; #charset koi8-r; #access_log /var ...

Posted by Dilb on Fri, 13 Dec 2019 09:21:38 -0800

Deploy Varnish Cache Handler Server

Blog Outline:1. Overview of Varnish1. Introduction to Varnish2. Differences between Varnish and squid3. How Varnish works4.Varnish architecture5.Varnish Configuration6. Built-in preset variables in VCL7. Subprograms of VCL8. Specific Function Statements9.return statement10.Steps for processing Varnish requests11.Elegant mode of Varnish2. Inst ...

Posted by g_pmattoo on Thu, 12 Dec 2019 18:20:19 -0800

Django Learning Files Upload and Download

That's six steps to upload! I. Configuration in settings configuration file MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'medias').replace('\\', '/')#media is the root path for picture upload 2. Configuring in url routing urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^index/', views.index,name='index'), ] + stati ...

Posted by BandonRandon on Wed, 11 Dec 2019 17:40:37 -0800

Dynamic and static separation of Nginx under linux CentOS7

The separation of static and dynamic doesn't explain. There are a lot of theories on the Internet, but the implementation means I understand is that specific requests use specific processing methods. For nginx installation, please refer to this: https://blog.csdn.net/tangyaliang11/article/details/78675535 For tomcat installa ...

Posted by jh21236 on Wed, 11 Dec 2019 12:25:50 -0800

A check on timeout

Recently, some users always reported that "failure - server problem" will occur when they download large Excel from Redash, and the time from point to error prompt is almost the same. First, I checked the error log of Nginx, and it showed that upstream prematurely closed connection while sending to client. The first reaction should be ...

Posted by Crayon Violent on Tue, 10 Dec 2019 19:19:45 -0800

Spring Cloud Article 4 | Client Load Balancing Ribbon

​ This is the fourth article in the Spring Cloud column. Understanding the first three articles will help you better understand this article: First Spring Cloud | An overview of the Spring Cloud preamble and its common components Spring Cloud Part 2 | Use and Know the Eureka Registry Spring Cloud Article 3 | Build a highly available Eurek ...

Posted by kylebuttress on Tue, 10 Dec 2019 13:09:09 -0800

(SOS)centos7, nginx cannot parse php file

I. problem description When accessing the *. PHP file, the content of the file is not displayed, but the file to be accessed is downloaded directly, such as index.php. But it's normal to visit index.html. After reading all the posts on the Internet that have encountered this problem, we still haven't found a solution, so we po ...

Posted by bbaassiri on Tue, 10 Dec 2019 11:46:50 -0800

How to build a Web cluster using Haproxy

Common Web Cluster Schedulers At present, the common Web cluster scheduler is divided into software and hardware. Software usually uses open source LVS, Haproxy, Nginx. Hardware usually uses F5 more. Many people also use some domestic products, such as pike, green league, and so on. Haproxy application analysis LVS has a strong anti-load capab ...

Posted by Niel Roos on Tue, 10 Dec 2019 09:25:56 -0800