search
Article Tags
Nginx
How to use Nginx as reverse proxy for Tomcat server

How to use Nginx as reverse proxy for Tomcat server

1) Of course you need to download the software you want to use. Go to the nginx official website for the next one. http://nginx.org/en/download.html can be found here. The version I am using now is 1.1.7, but basically all future versions are compatible, and what we are using does not involve too low-level aspects, so there should be no changes. Here, since mine is Windows, of course I download the Windows version. After downloading, you need to start it first. Enter the nginx folder and start nginx directly. For example, after downloading it, I put it in d:\software\developertools\server\nginx-1.1.7 and directly cmd

May 21, 2023 pm 07:01 PM
nginxtomcat
How to deploy and run CentOS7 Docker Nginx

How to deploy and run CentOS7 Docker Nginx

1. Resource preparation dockerfile file#"ported"byadammillerfrom#https://github.com/fedora-cloud/fedora-dockerfiles##originallywrittenforfedora-dockerfilesby#scollierfromcentos:centos7maintainerthecentosprojectrunyum-yupdate;yumcleanallrunyum-yinstallepel-relea

May 21, 2023 pm 06:19 PM
Dockernginxcentos7
How to configure nginx to use ssl module to support HTTPS access

How to configure nginx to use ssl module to support HTTPS access

Background: WeChat applet was used in project development, but the server configuration URL must be https, so the ssl module of nginx needs to be configured to support https access. In other words, to make a website with a domain name of dmsdbj.com, it requires https:/ /dmsdbj.com to visit. The English name of ssl is securesocketlayer, secure socket layer. SSL is a kind of digital certificate. It uses the SSL protocol to establish a secure channel between the browser and the webserver, and the data information is securely transmitted between the client and the server. Prerequisite: 1. Configuring the SSL module first requires a ca certificate. The ca certificate can Manually

May 21, 2023 pm 06:10 PM
HTTPSsslnginx
How to use cPanel to configure Nginx reverse proxy in CentOS 7

How to use cPanel to configure Nginx reverse proxy in CentOS 7

cPanel is currently the most powerful, easiest to use, and most popular virtual host control system in the world. Many foreign hosts use this control panel. First, we need to install the EPEL library to start this process. Step 1: Install the EPEL library root@server1[/usr]#yum-yinstallepel-releaseLoadedplugins:fastestmirror,tsflags,universal-hooksLoadingmirrorspeedsfromcachedhostfile*EA4:66.23.237.210*base:mirror

May 21, 2023 pm 05:43 PM
CentOSnginxcpanel
How to solve the problem that Font Awesome is not displayed in Firefox under Apache/Nginx

How to solve the problem that Font Awesome is not displayed in Firefox under Apache/Nginx

1. nginx server solution The server uses nginx. To add the access-control-allow-origin field to the response header, the method of adding is to use the add_header directive: Configuration example: Copy the code as follows: location/assets/{gzip_staticon; expiresmax;add_headercache-controlpublic;add_headeraccess-control-allow-origin*;} 2. Apache server solution fontawesome (firefox cannot display fire

May 21, 2023 pm 05:43 PM
nginxapachefirefox
How to configure and use the map module in Nginx server

How to configure and use the map module in Nginx server

The map directive uses the ngx_http_map_module module. By default, nginx loads this module unless artificially --without-http_map_module. The ngx_http_map_module module can create variables whose values ​​are associated with the values ​​of other variables. Allows classification or simultaneous mapping of multiple values ​​​​to multiple different values ​​​​and storage in a variable. The map directive is used to create a variable, but only performs the view mapping operation when the variable is accepted. For processing requests that do not reference variables, this The module has no performance shortcomings. 1.ngx_http_map_module module instruction description map syntax

May 21, 2023 pm 05:14 PM
mapnginx
How to use Zabbix custom script to monitor nginx and WeChat alarms

How to use Zabbix custom script to monitor nginx and WeChat alarms

Project Description The purpose of this project is to build a zabbix monitoring system that can implement WeChat alarms, conveniently monitor the entire NGINX cluster, and at the same time deploy and manage the entire cluster in batches. Project steps: Install zabbixserver on the zabbix server (192.168.2.138), install zabbixagent (192.168.2.58) on the nginx side, configure the Nginx load balancing cluster, and turn on status statistics. Write a monitoring script on the nginx side to get the status of nginx. The server-side web adds monitoring items and outputs pictures. Register the enterprise WeChat and configure the WeChat interface. Add the interface push script to the zabbix server and test that the interface is normal. in we

May 21, 2023 pm 05:10 PM
nginxzabbix
How to achieve smooth restart and upgrade of nginx

How to achieve smooth restart and upgrade of nginx

If you change the nginx configuration file (nginx.conf) and want to restart nginx, you can also do it by sending a system signal to the nginx main process. However, before restarting, make sure the syntax of the nginx configuration file (nginx.conf) is correct, otherwise nginx will not load the new configuration file. You can determine whether the nginx configuration file is correct by running the following command: /usr/local/webserver/nginx/sbin/nginx-t-c/usr/local/webserver/nginx/conf/nginx.conf If the configuration file is incorrect, the screen will prompt you to configure it. arts

May 21, 2023 pm 05:07 PM
nginx
How to configure nginx https 443 port

How to configure nginx https 443 port

1. Log in to the domain name controller such as Alibaba Cloud or Tencent Cloud to download the free certificate 2. Click nginx to download and upload it to the server 3. nginx configures the https protocol server{listen443ssl;server_namexxx.com;ssl_certificatecert/downloaded pem suffix file;ssl_certificate_keycert/download key suffix file;ssl_session_timeout120m;ssl_protocolsTLSv1TLSv1.1TLSv1.2;ssl_ciphersALL:!ADH:!EXPORT5

May 21, 2023 pm 04:40 PM
HTTPSnginx
How to configure Location from scratch in Nginx

How to configure Location from scratch in Nginx

Basic knowledge: The matching order of location is "match regular first, then normal". The matching order of location is actually "match common first, then match regular". The reason for the misunderstanding is: regular matching will override ordinary matching nginxlocation configuration syntax 1.location[=|~|~*|^~]uri{...}2.location@name{...}location configuration can have two Configuration methods 1. Prefix + uri (string/regular expression) 2. @+name prefix meaning =: exact match (all must be equal) ~: case sensitive ~*: ignore case ^~: only need to match uri Part @: internal service jump loc

May 21, 2023 pm 04:22 PM
nginxlocation
How to do nginx php not cache files

How to do nginx php not cache files

How to set nginxphp not to cache files: 1. Find and open the nginx configuration file; 2. Pass "location~.*\.(gif|jpg|jpeg|png|bmp|swf|js|css)${add_headerCache-Controlno -store;}" just disable caching. How to do nginxphp without caching files? Nginx cache-disabling configuration When debugging website programs, you often encounter browser cache problems that cause the modified front-end code to have no effect. The cache can be cleared only after forcing a refresh via Ctrl+F5 each time. At this time, if you disable the nginx cache, you can reduce some minor troubles and allow the browser to

May 21, 2023 pm 04:09 PM
PHPnginx
How to ban ip access or illegal domain name access in Nginx

How to ban ip access or illegal domain name access in Nginx

In a production environment, for safe access to the website, Nginx needs to prohibit some illegal access, such as malicious domain name resolution and direct use of IP to access the website. Some commonly used configuration examples are recorded below: 1) Forbid IP access. If the servername is not matched, default will be found and a 501 error will be returned. server{listen80default_server;server_name_;return501;}2) Jump to the homepage via 301 server{listen80default_server;server_name_;rewrite^(.*)http://www.jb51.c

May 21, 2023 pm 03:55 PM
nginxip
How to use tomcat with nginx

How to use tomcat with nginx

Summary of using tomcat combined with nginx I believe many people have heard of nginx. This small thing is slowly eating up the share of apache and IIS. So what exactly does it do? Maybe many people don't understand it. Speaking of reverse proxy, many people may have heard of it, but many people may not know what a reverse proxy is. Excerpt from a description on Baidu Encyclopedia: The reverse proxy (ReverseProxy) method refers to using a proxy server to accept connection requests on the Internet, then forwarding the request to the server on the internal network, and returning the results obtained from the server to the Internet When a client requests a connection, the proxy server appears as a server to the outside world. It’s very telling here

May 21, 2023 pm 01:07 PM
nginxtomcat
How to define nginx pseudo-static rules

How to define nginx pseudo-static rules

1. nginx pseudo-dynamic rules rewrite^(.*)/tags.html$1/tags.php; rewrite^(.*)/tags/(.*)-1.html$1/tags.php?/$2/ $3;or rewrite^([^\.]*)/tags.html$1/tags.php;rewrite^([^\.]*)/tags/(.*)-([0-9]+). html$1/tags.php?/$2/$3;2. .htaccess file pseudo-information requirement RewriteBase/RewriteRule^tags\.html$/ta

May 21, 2023 pm 12:19 PM
nginx

Hot tools Tags

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

vc9-vc14 (32+64 bit) runtime library collection (link below)

Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit

VC9 32-bit

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use