search
Article Tags
All
How to solve the problem of nginx hidden version number and WEB server information

How to solve the problem of nginx hidden version number and WEB server information

nginx can not only hide version information, but also supports custom web server information. Let’s take a look at the final hidden result. How to achieve it? It’s actually very simple. Please look down 1. Official website to download the latest stable version wgethttp://nginx.org/ download/nginx-1.14.1.tar.gz2 Unzip tar-xfnginx-1.14.1.tar.gzcdnginx-1.14.13 Modify the c file (1) vimsrc/http/ngx_http_header_filter_module.c       #Modify line 49 staticu_charngx_http_

May 21, 2023 am 09:13 AM
webnginx
How to solve the problem 'Welcome to nginx on Fedora!' after installing nginx in Centos7

How to solve the problem 'Welcome to nginx on Fedora!' after installing nginx in Centos7

Problem description: When installing nginxsudoyuminstallnginx on Tencent Cloud centos7, open the default webpage and display welcometonginxonfedora! And there is no default.conf file in the /etc/nginx/conf.d directory. Reason: Tencent Cloud’s epel source is downloaded by default, which is fedora. Solution • Preparation sudoyuminstallyum- utils • Create nginx.repo file sudovim /etc/yum.repos.d/nginx.repo and add the following content [nginx-stable] name=nginxstab

May 20, 2023 pm 06:22 PM
nginxcentos7
How to deploy nginx, php and virtual host configuration in CentOS environment

How to deploy nginx, php and virtual host configuration in CentOS environment

Deployment time: 2012-07-24os environment: centos6.1nginx: nginx-1.2.2php:php5.3.140, install the dependency package and copy the code as follows: yuminstallopenssl-develpcre-develzlib-devellibjpeg-devellibpng-develfreetype-develgccmake1, add www user To execute nginx, copy the code as follows: useradd-m-r-s/sbin/nologin-d/opt/web/www2. Create a temporary directory. Copy the code as follows: mk

May 20, 2023 pm 02:25 PM
PHPCentOSnginx
Vim functions for PHP functions

Vim functions for PHP functions

In modern web development, PHP is a very commonly used programming language. With its rich function library and flexible syntax, it has become the first choice of many programmers. In PHP, function is one of the most basic and important concepts. Functions can encapsulate a piece of code to facilitate calling and maintenance. Using functions can improve code reusability and reduce code redundancy and errors. Therefore, it is very important for PHP developers to be proficient in the use and writing of PHP functions. When writing PHP functions, a useful

May 20, 2023 am 08:16 AM
编程PHP函数Vim函数
How to use nginx to access local static resources on a linux server

How to use nginx to access local static resources on a linux server

1. Check whether port 80 is occupied. Generally, port 80 is mostly occupied by the apache service. netstat-anp|grep802. Modify the port number of the apache service vim/etc/apache2/ports.conf3. Modify the port number to 80804. Modify the nginx service configuration vim/etc/nginx/conf.d/nginx.conf5. Restart the nginx service servicenginxrestart6. The page tries to access local resources 7. The access is successful!

May 19, 2023 pm 07:46 PM
Linuxnginx
golang compilation exclusion

golang compilation exclusion

Golang is a strongly typed, compiled language designed to build high-concurrency, high-reliability, and high-performance applications. However, during the actual compilation process, we sometimes encounter compilation exclusion problems. This article will introduce you to the reasons, solutions and techniques for Golang compilation exclusion. I hope it will be helpful to you. 1. Causes of compilation problems When the Golang compiler compiles source code, it will automatically generate corresponding intermediate codes and convert them into final executable files or library files during linking. But sometimes the compiler cannot convert the source code into

May 19, 2023 pm 12:17 PM
Linux deployment golang

Linux deployment golang

With the growing development of Go language, more and more companies and programmers choose to use Go language for development. Linux systems are widely used as development and deployment environments, and deploying Go programs to Linux systems has become an inevitable task. This article will introduce how to deploy Go programs on Linux systems. 1. Install the Go language environment. The official website of the Go language provides a binary release package for Linux systems, which can be downloaded from the official website. The specific operations are as follows: 1. Open the official website https://golang.or

May 19, 2023 am 09:09 AM
How to use Linux nano command

How to use Linux nano command

1. Introduction to nano command Nano is a small, free, and friendly editor designed to replace Pico, the default editor in the non-free Pine package. Nano not only replicates the look and feel of Pico, but also implements some features that are missing (or disabled by default) in Pico, such as "Search and Replace" and "Go to Line and Column Numbers". nano is a character terminal text editor, a bit like the editor program under DOS. It is much simpler than vi/vim and is more suitable for Linux beginners. The default editor of some Linux distributions is nano. For example, Ubuntu system has nano installed by default. 2. Nano command usage examples 1. Command installation [root@s142

May 18, 2023 pm 03:20 PM
Linuxnano
How to reverse proxy Nginx to Tomcat server

How to reverse proxy Nginx to Tomcat server

In actual production, tomcat servers are generally not used alone in projects. Nginx performs better in responding to static resources. In addition, since nginx is a server specifically used for reverse proxy, it is easy to forward Java requests to the backend. The client is handed over to the tomcat container for processing, and it is used to process static resources. In nginx, a server{} block is often used to configure a relatively large project. Generally, it is all the configurations of a domain name. There are usually multiple configurations in a server block. location to define multiple request rules, such as domain name and root directory configuration, static resource support, phpfastcgi request, url rewriting, error page configuration and other configurations, so

May 17, 2023 pm 09:01 PM
nginxtomcat
Is the art of javascript programming obsolete?

Is the art of javascript programming obsolete?

As technology continues to develop, programming languages ​​are also constantly evolving. As one of the main languages ​​for front-end development, JavaScript is no exception. Since its birth, JavaScript has been continuously updated, improved and optimized to adapt to new needs and application scenarios. Over time, JavaScript has become more and more widely used, and is even used in external server applications. Therefore, we need to look at this problem from a different perspective. History of JavaScriptJavaScript Begins

May 17, 2023 pm 02:13 PM
Gitlab cannot be opened after clearing the firewall

Gitlab cannot be opened after clearing the firewall

Among enterprise-level code hosting platforms, GitLab is a highly respected choice. In the daily operation and maintenance of the platform, it is very common to add firewall rules. However, if the firewall rules are set improperly, GitLab may be unable to be accessed. If this happens, users can first consider clearing the firewall. However, some users may find that GitLab is still unable to access normally after clearing the firewall. This article will introduce you to the relevant processing methods in detail. Problem description: When users clear the firewall, they usually use the following command: iptables -F

May 17, 2023 pm 12:41 PM
How to install nodejs under ubuntu and implement Nginx reverse proxy server

How to install nodejs under ubuntu and implement Nginx reverse proxy server

1. It is strongly recommended to use nvm (node ​​version manager) to install the new version of nodejs. There are more or less problems with other installation methods. The specific steps are as follows: 1. Download nvm through the git command. The execution command is as follows. We download nvm to /root/git/ (remember to install git first): [root@vm-22-180-ubuntu~]#pwd/ root[root@vm-22-180-ubuntu~]#mkdirgit[root@vm-22-180-ubuntu~]#cdgit[root@vm-22-180-ubuntu~]#gitclonehttps://

May 17, 2023 am 09:13 AM
Ubuntunginxnodejs
How to install and configure FastDFS to integrate Nginx-1.13.3

How to install and configure FastDFS to integrate Nginx-1.13.3

1: Download fastdfs We need a total of three files 1.fastdfs Distributed file storage system 2.libfastcommon Fastdfs function library 3.fastdfs-nginx-module When connecting to the nginx function module download, please note that the format downloaded here is .zip and not tar.gz. The reason for this is that an error will occur when using the fastdfs-nginx-module module to integrate nginx. The reason is that the fastdfs version must be >=5.11. Otherwise, an error will be reported when compiling nginx. You can look at the inst of the module

May 16, 2023 pm 04:43 PM
nginxfastdfs
What is the difference between Linux commands su and sudo

What is the difference between Linux commands su and sudo

1. Preparation The command to create a new user in Linux is useradd. In general, the path corresponding to this command is in the PATH environment variable. If typing useradd directly does not work, use the absolute path name: /usr/sbin/useradd . The useradd new user command can only be executed by the root user. First switch from the ordinary user ubuntu to the root user (how to switch will be introduced later): ubuntu@VM-0-14-ubuntu:~$su-Password:#Enter the root user login password root@VM-0-14-ubuntu:~#useradd-mtest_user

May 16, 2023 am 11:07 AM
Linuxsudosu

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