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
After being tested by Zhiwen Studio, the relevant configurations are as follows:
Copy codeThe Code is as follows: location ~ \. Php (. *) $ {
Fastcgi_pass unix:/tmp/php-cgi.sock;
Fastcgi_index index. php;
Fastcgi_split_path_info ^ (. + \. php) (. *)
Install Nginx under Ubuntu (Nginx + Php5-fpm), nginxphp5-fpm
I won't bother with the introduction of nginx. Let's talk about the system installation environment first.
0. installation environment
System: Ubuntu 14.04
PHP version: 5.5.9
Existing
I haven't written some blogs for a long time. I just found my job. I had the honor to participate in the splitting project of my company's website in a few days. Today I wrote these things to familiarize myself with the source code installation
Nginx Common Configuration Error1. Use the root command in locationThe good habit should be to configure the root command in the server blockserver {server_name www.domain.com; root/var/www/nginx-default/; Location/{[...] } location/foo {[...] }
Build nginx Image Server Part-i install Nginx
Installing Pcre
Download Ngx_cache_purge and unzip to clear the cache
Download Nginx and Unzip
CD nginx-1.7.7
Compile,--prefix use the default value, then Nginx installed
Php
Download PHP 5.6 (VC11 x86 Non Thread Safe), unzip to any directory, copy the file php.ini-development and rename it to PHP.ini.
I did not modify the contents of the php.ini file, and the following test passed. If you want to change later, you
: This article mainly introduces the alias case for nginx configuration to implement Apache. if you are interested in the PHP Tutorial, please refer to it. Configure access/phpymadmin/actual access content d:/wamp/apps/phpmyadmin4.1.14/phpmyadmin /,
This article mainly introduces the method of customizing single Nginx image for multiple PHP-FPM container, has certain reference value, now share to everybody, need friend can refer to
I've been trying to deploy a PHP micro-service that uses
: This article mainly introduces how to solve the problems that do not support pathinfo mode and the existing 404,500 problems in nginx + thinkphp. if you are interested in PHP tutorials, refer to it. After two days of nginx environment problems, I
: This article mainly introduces nginx anti-Leech + dynamic/static separation + reverse proxy + cache + server load balancer. if you are interested in PHP tutorials, refer to it. Modify nginx/conf/nginx. conf as follows:
User www; worker_processes 1
Nginx basic configuration
1. Advantages and disadvantages of Apache server and nginx:We used Apache in large numbers as HTTPServer.Apache has excellent performance and provides a variety of functions through modules.1) Apache first supports
This article describes how to solve the problem that does not support the pathinfo mode in nginx + thinkphp. For more information, see
This article describes how to solve the problem that does not support the pathinfo mode in nginx + thinkphp. For
Enable FASTCGI CachingEdit the virtual host configuration file that must be enabled for caching.
Nano/etc/nginx/sites-enabled/vhost
Add the following line to the top of the file beyond the server{} directive:
The specific environment for nginx+php, to configure phpMyAdmin.
Now the problem is to access the host domain name, the HTML directory PHP can run normally. However, access to the phpmyadmin.xxxxx.com domain name, html/phpmyadmin file will be
Nginx Introduction I will not wordy, first say the installation environment of the system.
0. Installation Environment
System: Ubuntu 14.04
PHP version: 5.5.9
Existing Server Software: Apache (basic not affected, will be mentioned later)
1.
Php + nginx installation today, I tried to use nginx as a server in WIN2K3 to run PHP. Why nginx? Small and free installation. Why fastcgi? In nginx, if php does not use the fastcgi mode, you need to configure Apache in the proxy mode .. Go to
Lab Requirements:1, CentOS 7, NPM rpm package, php-fpm;A) a virtual host to provide WordPress, another virtual host to provide phpmysamin;b) Providing HTTPS services to Phpmyadmim;
Lab Environment:Linux Server OS version: CentOS Linux release 7.2
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.