上一篇讲了在CentOS6+nginx环境下如何用Let’s Encrypt签发免费的SSL证书,本篇将介绍在CentOS7环境下的签发方法。 在CentOS7环境下比在CentOS6环境下更简单,只要按照步骤做,基本不会有问题。 系统环境:CentOS Linux release 7.9.20
系统环境:阿里云 CentOS release 6.10 (Final) Python版本:Python 2.6.6 官方文档:https://certbot.eff.org/lets-encrypt/centos6-nginx 官方文档很简单,就3步,但是基础
配置文件如下: http { include mime.types; default_type application/octet-stream; # for websoket map $http_upgrade $connection_u
# server_tokens off; sendfile on; tcp_nopush on; tcp_nodelay  
# worker_processes 4; error_log logs/error.log; events { use epoll; &nb
nginx的日志access.log没有分割,访问的记录一直都记录在此文件中,长期下去对于日志查询和文件系统都不好,所以需要进行分割。 vim /data/scripts/cut_nginx_log.sh #!/bin/bash # auto-run this script at 0
常见的nginx配置中只能记录GET请求,没有记录POST请求,可通过以下方法实现:log_format main '$remote_addr - $remote_user [$time_local] "$request" '
网站访问目录为http://show.abc.com/ ,但是wordpress是装在他下面的manage目录中的,所以访问到的首页也该是http://show.abc.com/manage/而wordpress默认访问文章的URL是http://show.abc.com/manage/?