In the study of Linux on the journey, encountered a variety of problems, has been resolved to take notesKey installation[more detailed explanation from]lnmp.org pagesInstalling the LNMP stable versionWget-c
Add multiple virtual Hosts
Recently in Ubuntu churn Nginx, the installation was successful, only rewrite did not test, because the server has more than one website, still dare not try on the server, slowly. On the Internet to check some articles,
First, Apache Certification
Type of authentication: BasicDigest SummaryAuthentication method: A, container attestation: ......B, hidden file authentication create. htaccess file
Method one, container authentication
A, enter the configuration file
Nginx can set password authentication for Web sites or directories or even specific files. The password must be crypt encrypted. You can use Apache htpasswd to create a password.
The format is:
Htpasswd-b-C site_pass username password
Recently has been doing location configuration, encountered priority issues (if the improper configuration may exist security risks OH), the following is a personal learning experience.
Location of one or more matches1. Equals matching character:
First, Nginx directory protection and Access restrictions
The Nginx protection directory is configured as follows, and the directory password protection file is/usr/local/nginx/htpasswd
Location ~/admin {
#admin为要保护的目录名称, location means to
Download Nginx So fire, whether you also adopt LNMP architecture. Then in the Nginx How to configure, in order to support the thinkphp pathinfo routing mode, the following is the example of configuration, the domain name and the path to their actual
The company recently needed to use thinkphp to do a project. For convenience, I chose the Apache integration package. And configured the url_model=2, everything works fine. The project needs to be migrated to the server after local development, but
1, nginx.conf file, the path is:/etc/nginx/agin.conf
#使用的用户和组 user www-data;
#指定工作衍生进程数 (generally equal to twice times the total number of CPUs or total cores) Worker_processes 4;
#指定PID存放的路径 Pid/run/nginx.pid;
#指定文件描述符数量 Worker_rlimit_nofile 512
Here to configure 2 sites (2 domain names) For example, n sites can increase the adjustment, assuming:
IP Address: 202.55.1.100
Domain 1 example1.com placed in/www/example1
The basic ideas and steps for configuring Nginx virtual hosting are as
Method One: Multiple. conf method (The advantage is flexible, the disadvantage is that the site more configuration trouble)
Here to configure 2 sites (2 domain names) For example, n sites can increase the adjustment, assuming:
IP Address: 192.168.1.1
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
1. What are forward proxy and forward proxy servers?
A forward proxy is usually called a proxy. A computer uses a server to access the Internet. This computer is called a client, this server is called a forward proxy server, which is usually called
An example of implementing Load Balancing using nginx as a reverse proxy:Reprinted please indicate the original link: http://blog.csdn.net/omohe/archive/2009/07/09/4335765.aspxVersion: V1.0 Author: Omo last modification time: 2009.07.091)
Install Nginx under Ubuntu (Nginx + Php5-fpm) nginx introduction I will not be arrogant, first talk about the system installation environment.
0. installation environment
System: Ubuntu 14.04
PHP version: 5.5.9
Existing server software:
The url access problem of the yaf framework has long been heard of yaf of laruence. Recently, I want to build a trial study
However, the access encountered some problems:
In the lnmp environment, the nginx configuration is
Root/www/web/root;
If (!
I used the token in advance.
First of all, I found it on the above website. There was a previous installation process. What I found today is to decompress the package directly. We recommend that you install the package after "installation". In fact,
Nginx main configuration parameters, Nginx configuration website, and nginx Parameters1. Detailed description of parameters in the main configuration file
A. Install nginx in Linux. Blog address: http://www.cnblogs.com/cindy-cindy/p/6847499.html
B.
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.