1. Certificate of Application:Https://console.qcloud.com/ssl?utm_source=yingyongbaoutm_medium=sslutm_campaign=qcloud2. Import the certificate into the server, either XFTP or Filezilla:3. Modify nginx, My nginx is located in/etc/nginx/:Nginx comes with SSL configuration, delete the comments, modify the certificate locat
Today in the configuration of the Nginx+ssl when the title of the mistake, and later with the Niang a bit of sex after finding a solution, quite useful, conveniently turned.
Generally in the configuration of Vhost will have PHP parsing a paragraph, such as:
Copy Code code as follows:
Location ~. *\. (PHP|PHP5)? $
{
Try_files $uri = 404;
Fastcgi_pass Unix:/tmp/php-cgi.sock;
Fastcgi_param HTTPS
{} segment:listen 443;ssl on;ssl_certificate /path/to/www.example.com.crt;ssl_certificate_key /path/to/www.example.com.key;Where the path is the path of the Web site certificate that was just generated.Then use the command to detect the configuration and reload Nginx:检测配置:nginx -t重新加载:nginx -s reload4. Optimized Nginx
3306 port access right here, add it after permanent firewall-cmd--zone= public --add-port=3306/tcp--Permanent firewall-cmd--is-enabled Firewalld.service View list of services started: Systemctl lists- Unit-files|grep enabledSecond, Nginx installation and Configuration 1.1 installation NginxDownload more than 1.9 version is only supported by more than 1.9 versions, the installation process is slightlyNote that when compiling, add--with-stream./conf
We want to create an nginx server with the proxy ip address 192.168.0.101. The local machine acts as the test master and the local ip address is 192.168.0.234.Nginx Proxy Server ConfigurationFirst, configure the yum Source[Root @ server70 ~] # Yum groupinstall-y "Development Tools" "Development Libraries"[Root @ server
configuration HTTPS website and increase the security configurationAs mentioned earlier, you need to submit a CSR file to a third-party SSL certification Authority, after certification, they will issue you a CRT file, which we named EXAMPLE_COM.CRTAlso, for the sake of unification, you can move all three files to the/etc/ssl/private/directory.You can then modify the Nginx configuration file server { a
Common Nginx proxy configuration
Due to business system requirements, the web service must be used as an nginx proxy. During constant attempts, the common nginx proxy configuration is briefly summarized.1. Simplest reverse
/ssl/misc/demoCA.-rf
$ Openssl ca-policy policy_anything-days 1460-cert ca. crt-keyfile ca. key-in test.flykobe.com. csr-out test.flykobe.com. crt
The generated test.flykobe.com. crt file contains the Certificate information and the CERTIFICATE string.
If you do not merge crt files, Some browsers may not. :
$ Cat ca. crt> test.flykobe.com. crt
The final file required is: test.flykobe.com. key test.flykobe.com. crt
Configure nginx Server
server {
1 first need to purchase SSL certificate, the major cloud service vendors have the service, you can also apply for free. 2 Copy the key and certificate files to the corresponding Nginx Conf directory 3 Modify NGINX configuration file, configure SSL as follows:server{listen 443ssl;server_name www.xxx.cnlocalhost; #xxx填对应域名 ssl _certificatexxx.crt; #xxx对应证书 ssl_certificate_keyxxx.key; #xxx对应证书秘钥 ssl_session
Nginx automatically jumps from http to HTTPS#vim nginx.confserver {Listen 80;server_name www.test.com;CharSet Utf-8;Return 301 https://$server _name$request_uri; #添加这行, which can be achieved by jumping from HTTP to HTTPSAccess_log Logs/wwwuat.yaok.com.log Main;Location/{Rewrite ^/(. *) $//$1 last;}Location ^~//{Proxy_pass http://127.0.0.1:8064;Proxy_redirect off;
: This article mainly introduces the problems encountered during the process of data collection-upgrading the Nginx server and adding HTTPS. if you are interested in the PHP Tutorial, refer to it. Data collection-problems encountered when upgrading the Nginx server and adding HTTPS
Labels (separated by spaces): Blog D
There is a server for Windows, now to be managed remotely, but the server is in the intranet, only through the front of the machine to jump, and the front of the Linux, need to use the TCP proxy, The server has nginx-1.2.9 installed and intends to use the Nginx TCP proxy module, the following is the installation config
, efficiency is not high, in fact, we can directly through the Nginx to proxy these static files.
Nginx's Proxy_pass support fills in any address, and DNS resolution is supported. So my idea is to encrypt the original URL into the URL of the website itself. Like the top.
Copy Code code as follows:
Yun_qi_img/browserify_logo.png
can be encrypted into
Copy Code code as follows:
Reference: http://www.cnblogs.com/yanghuahui/archive/2012/06/25/2561568.html
Http://www.linuxidc.com/Linux/2011-11/47477.htm
http://blog.csdn.net/sean_cd/article/details/38738599
Nginx-vSee if Nginx's SSL configuration is –with-http_ssl_module. If you do not find –with-http_ssl_module This compilation parameter, the description is not supported. Nginx default is not support SSL, need to join the –with-http
Recently many people are more concerned about the application and setup of SSL certificate, Spring Brother technology blog recently also introduced some of the domestic free SSL certificate application process and more commonly used VPS site environment package How to install the configuration SSL certificate. Want a friend who needs to be able to successfully install an SSL certificate for their site. Here Chun brother for everyone to share several Nginx
: This article describes how to configure Nginx to implement reverse proxy and server load balancer based on the tcp protocol. For more information about PHP tutorials, see. 1. installation environment
System environment: centos6.3 _ x64
Software version: nginx-1.4.2.tar.gz nginx_tcp_proxy_module-master.zip2. software installation cd/root/
Wget http://nchc.dl.so
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.