Now git is very popular, everyone also started to use it to manage the site source code, but. Git data directory in the site's source root directory will also have a copy, Nginx usually configured when the hidden directory does not specifically deal
For static web sites have the public need to include, and do not want to use dynamic Web pages to write, then shtml is the best choice. sHTML can contain the specified file to a document similar to the Include feature in PHP.
Nginx itself has
Lua is a language very much like JavaScript, Ngix_lua also uses asynchronous single-threaded, syntax is even simpler than JS, before the evaluation that Ngix_lua performance is almost one times the node.js.
Nginx Features
1. The popular
This article describes the method for making nginx RPM packages, examples are as follows:
1. Download Nginx source, direct operation command:
Cd/root
wget http://nginx.org/download/nginx-1.7.1.tar.gz
After you get the source package,
In the path, there are irregular characters such as quotation marks, colons, and so on. If the active path in your script is from a piece of information, you will definitely need to return the path that conforms to the rule.
Here's a section of the
When you analyze a text log or filter out the type of information, you usually use Where-object. Here's a generic script that illustrates a composite filter:
# Logical AND filter for all keywords
get-content-path C:\windows\WindowsUpdate.log |
Strings enclosed in double quotes can use variables directly, which is a common technique, such as code:
$name = $host. The Name
"Your host is called $name."
But there are limits to this technique. If you want to display the object's
Supports all PS versions
Get-childitem does not support file advanced filtering. It can only use simple wildcard characters, but cannot use regular expressions.
Around this issue, we can use the-match command to filter.
The following example will
It is easy to calculate the number of files under a folder, but before you see this article, you never think about the number of files and how much learning is there.
Here are two ways to calculate the number of files under a folder, showing
The TimeSpan object represents a time difference, such as today's 10:10, and tomorrow's 12:12, 1 days 2 hours and 2 minutes. This "1 day 2 hour 2 minutes" is a timespan. What's the use of this thing? Small knitting before doing a small thing, need
The so-called assignment statement, small series in the earliest learning C language to know that is "a=1;" Over the years, although the language is changing, but the assignment statement basically has not changed. But today, while looking at a
Valerio tonight released Mootools, a JavaScript framework that integrates Valerio previous effects classes (MOO.FX) Ajax classes (Moo.ajax), Dom selection classes (Moo.dom), and Added drag (Drag and drop), sortable lists (Chinese do not know how to
The system log is a very important thing but at the same time if we do not regularly clear the space will be to the log, I would like to introduce a regular delete log implementation methods, you can refer to the students.
Nginx's log files
In Nginx, unlike Apache, the default is to open the Directory browsing function, in the Nignx directory browsing function By default is closed, I would like to introduce in the Nginx to implement the Directory browsing function configuration method.
Overview
Today encountered a problem, ubuntu+nginx+mysql configuration thinkphp project, did half found, Nginx not support thinkphp path_info mode, Baidu for a long time, in a friend's help to solve, record.
Nginx supports Thinkphp's path_info
1. First, add the corresponding header file of the ImageMagick library to the environment variable.
Copy Code code as follows:
Export C_include_path= $C _include_path:/usr/local/imagemagick/include/imagemagick/
The following
Basic concepts
Nginx the most common use is to provide reverse proxy service, then what reverse proxy? The agency believes that many compatriots in the mainland have been used in this magical land, the principle of the following figure:
The
In front of a high imitation launcher and ink drag effect has been a lot of friends praise, the last article is mainly through the custom ViewGroup, a little trouble. Today, this class uses Viewpager to achieve the same effect, so that the code is
After configuring an oversized domain name for Nginx, an error occurs when checking the configuration file by/usr/local/nginx/sbin/ngnix-t:
Copy Code code as follows:
Could not builds the Server_names_hash, you should increase
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service