Nginx

阿里云 CentOS7 + Nginx 部署Let’s Encrypt SSL证书

阿里云 CentOS7 + Nginx 部署Let’s Encrypt SSL证书

上一篇讲了在CentOS6+nginx环境下如何用Let’s Encrypt签发免费的SSL证书,本篇将介绍在CentOS7环境下的签发方法。 在CentOS7环境下比在CentOS6环境下更简单,只要按照步骤做,基本不会有问题。 系统环境:CentOS Linux release 7.9.20

admin admin 2020-12-21
1K+ 0 0
阿里云 CentOS6 + Nginx 部署Let’s Encrypt SSL证书

阿里云 CentOS6 + Nginx 部署Let’s Encrypt SSL证书

系统环境:阿里云 CentOS release 6.10 (Final) Python版本:Python 2.6.6   官方文档:https://certbot.eff.org/lets-encrypt/centos6-nginx 官方文档很简单,就3步,但是基础

admin admin 2020-12-03
928 0 0
nginx代理websoket

nginx代理websoket

配置文件如下: http { include mime.types; default_type application/octet-stream; # for websoket map $http_upgrade $connection_u

admin admin 2018-10-08
631 0 0
proxy.conf

proxy.conf

# server_tokens off; sendfile       on; tcp_nopush     on; tcp_nodelay &nbsp

admin admin 2017-03-31
584 0 0
nginx.conf

nginx.conf

# worker_processes  4; error_log  logs/error.log; events {     use epoll;    &nb

admin admin 2017-03-31
485 0 0
nginx日志分割

nginx日志分割

  nginx的日志access.log没有分割,访问的记录一直都记录在此文件中,长期下去对于日志查询和文件系统都不好,所以需要进行分割。 vim /data/scripts/cut_nginx_log.sh #!/bin/bash # auto-run this script at 0

admin admin 2015-05-22
707 1 0
nginx记录POST请求

nginx记录POST请求

常见的nginx配置中只能记录GET请求,没有记录POST请求,可通过以下方法实现:log_format  main  '$remote_addr - $remote_user [$time_local] "$request" ' 

admin admin 2015-05-22
546 0 0
wordpress子目录伪静态设置

wordpress子目录伪静态设置

网站访问目录为http://show.abc.com/ ,但是wordpress是装在他下面的manage目录中的,所以访问到的首页也该是http://show.abc.com/manage/而wordpress默认访问文章的URL是http://show.abc.com/manage/?

admin admin 2015-04-02
499 0 0