: This article mainly introduces [nginx] the most comprehensive nginx tutorial on the Internet (nearly 100 articles). If you are interested in PHP tutorials, refer to it. Nginx basics
1. nginx installation
2. nginx compilation parameters
Nginx does not seem to have a virtual directory, because it is completely based on the directory to design and work. If you want to give nginx a virtual directory, it is only the alias tag comparison "like", simply say the alias tag and root tag
I haven't written anything since I switched my computer to linux a year ago. Recently I am a little lazy. Here I will talk about the nginx alias function, not the server alias.
First, let's take a look at how apache alias is configured:
Copy
First, the user on the dynamic PHP Web Access processUser browser initiates access to a webpage: http://192.168.1.103/index.phpUser and Nginx server three handshake for TCP connection (ignoring including Nginx access control policy, Nginx Firewall
First, the user on the dynamic PHP Web Access processUser browser initiates access to a webpage: http://192.168.1.103/index.phpUser and Nginx server three handshake for TCP connection (ignoring including Nginx access control policy, Nginx Firewall
First, IntroductionWeb server:1.Apache: Still the most used Web server in the world. Advantages: Open source code, an open development team, support for cross-platform (can be run on almost all UNIX, Windows, Linux systems), portability, etc. is a
Since the computer switched to Linux from a year ago did not write things, recently a bit lazy, here to tell the next Nginx alias function, not server alias.
First look at how the Apache alias is configured:
Copy Code code as follows:
: This article mainly introduces the usage of Nginx alias and the difference between alias and root. For more information about PHP tutorials, see. The usage of alias in Nginx and the difference between alias and root
Nginx sets the custom header-----------------------------------------Vim nginx.conf is added to the HTTP module:Add_header MyHeader "The coments of MyHeader";The myheader here is a custom name that you write for yourself.After adding, test: curl-i
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.