Brief introduction
Nginx was developed by Igor Sysoev, the second rambler.ru site for Russian visits, and the first public version of 0.1.0 was released on October 4, 2004. It publishes the source code in the form of a BSD-like license, which is
Objective
This article mainly introduced the use of nginx map instruction to achieve page jump, there is a need to learn together.
Implementation methods
http Add a map directive rule to the nginx.conf domain, which contains a URL rule mapping
Run user
User nobody;
#启动进程, usually set to equal number of CPUs
Worker_processes 1;
#全局错误日志及PID文件
#error_log Logs/error.log;
#error_log Logs/error.log notice;
#error_log Logs/error.log info;
#pid Logs/nginx.pid;
Working mode
I was a long, long story in the legend, the author Hutia. I am the legend of a long long paragraph of the text, the author Hutia. I am the legend of a long long paragraph of the text, the author Hutia. I am the legend of a long long paragraph of the
The example in this article describes the functions that JS encapsulates to get elements through classname. Share to everyone for your reference, specific as follows:
Suppose you want to get all. Star elements
This paper analyzes the method of JS implementation dragging and dragging. Share to everyone for your reference, specific as follows:
Analysis:
1. Mouse down, drag and drop start, mouse movement, drag and drop, mouse lift, drag end (three events)
If you are configuring multiple tomcat on a single server, it is primarily to avoid the problem of port conflicts on the Tomcat server. Just modify the boot port and the connection port in the catalina_home\conf\server.xml to be OK!
Below we write
The method described in this article is implemented by adding a different port-number approach. The method is as follows:
1, modify ... /tomcat/conf/server.xml, the original code is as follows:
2, add a new
This paper describes the configuration process of the tomcat environment variables in the form of text, as well as the methods to verify the success of the configuration, as follows
JDK environment variable configuration:If your JDK is installed in
There are many tools for web development, and Tomcat is one of the Open-source and free Java Web servers, the Apache Software Foundation project. The way to configure Tomcat on your computer is the same as Java, but first you need to configure the
Problem description
There were several tomcat in the production environment, but suddenly all the requests were found to be unresponsive, and since our web server was using Nginx to reverse the request to Tomcat, it was initially suspected that
Problems with the Chinese path of the Tomcat server
Copy Code code as follows:
or Chinese filename
or http://127.0.0.1:8080/Chinese. [Extended Name]
Typically, in the above three cases, the TOMCAT5 server reports an error that
Tomcat has a Chinese problem because the character set does not directly support double-byte information such as Chinese. One solution is to simply modify its configuration file, as follows
Add a property named Uriencoding in the Server.xml file
Plug-in code
Copy Code code as follows:
/*
---
Name:userguider
Authors
-Garland Yang
Requires: [Core/class, Core/element.style, Core/element.event, Core/element.dimensions]
Version
-1.0
...
*/
var userguider = new Class ({
HTML code:
Copy Code code as follows:
I am a shy floating layer ...
JS Code:
Copy Code code as follows:
var $smartFloat = function (elements) {
var position = function (Element) {
var top =
Simply put, a class is a container that contains a set of variables and functions that manipulate them to achieve specific functionality. Classes can be incredibly useful in a project with more content involved.
Variable
In the previous series of
New installed a server, with Nginx do agent. Suddenly found that upload more than 1M large client files can not be uploaded correctly, and then modified the configuration of the next nginx.
Cd/export/servers/nginx/conf/nginx.conf, in the server
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