nginx目录访问密码保护 有时候需求这样:某个域名,或域名下的某个目录,需要访问时输入指定的用户名和密码。nginx同样可以做到,而且一点不比apache差。 第一步:生成htpasswd文件 htpasswd是Apache密码生成工具,Nginx支持auth_basic认证,因此我们也可以将生成的密码用于Nginx中,输入一行命令即可安装: apt install htt
分类目录归档:网站建设
nginx recv() failed (104: Connection reset by peer) while reading response header from upstream解决方法
最近发现LNMP环境在运行雅黑探针的时候报错,查了Nginx的错误日志为: 2018/10/06 15:37:30 [error] 1123#0: *4149 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: “GET /t.php?act=rt&callback=jQuery1720035
nginx设置成开机自动启动服务
1、nginx的安装目录 /usr/local/nginx 启动nginx cd /usr/local/nginx/sbin ./nginx 更改配置重启nginx cd /usr/local/nginx/sbin ./nginx -s reload 2、nginx设置成开机自动启动服务 1)在/etc/init.d下创建文件nginx,文件的内容拷贝官网内容,主要修改下面两个参数的值 nginx=”/usr/sbin/nginx” #修改成ng
WordPress网站开启https之后,登录后台显示“抱歉,您不能访问此页面”的错误
WordPress网站开启https后,在登录后台时会显示“抱歉,您不能访问此页面”导致无法登录控制管理台, 当您的一个WordPress网站配置Https后,登录WordPress管理后台出现“抱歉,您不能访问此页面” 或者 “将您重定向的次数过多”的问题时,可以使用本文提供方法快速解决。 解决方法: 在你的网站根目录下,找到 wp-confi
Debian10中PHPMyAdmin无法登陆MariaDB的解决方法
今天安装好Debian10后,又继续安装了Mariadb(Mysql)数据库。 但发现PHPMyAdmin登录时无法登录,只能在SSH中用Linux的root账户登录才可以。 百度后得知默认情况下, MariaDB root 用户使用 unix_socket 身份验证插件,该插件在调用 mysql 客户端工具时检查有效用户 ID 。 这意味着只有在 mysql 以系统 root 身份调用命
CentOS7上编译安装Tengine
第一步:先安装所需依赖环境 yum install gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel libxml2 libxml2-dev libxslt libxslt-devel gd-devel perl-devel perl-ExtUtils-Embed GeoIP GeoIP-devel GeoIP-data gperftools-devel.x86_64 -y yum install install redhat-rpm-config -y 第二步:编译Tengi
使用Supervisor守护Nginx进程
supervisor是个好工具。superviosr是一个Linux/Unix系统上的进程监控工具,Supervisor是用Python开发的一套通用的进程管理程序,能将一个普通的命令行进程变为后台daemon,并监控进程状态,异常退出时能自动重启。只要在supervisor的配置文件中,把要管理的进程的可执行文件的路径写进去即可。当子进程挂掉的时候,父进程
HP iLO 100 Integrated Remote Console download and start
If you get the message in the IE browser: JavaScript has been disabled or is not supported by your web browser which is needed by the Virtual KVM/Media applet. Please correct this problem. Just download the JAR file from server. Start the developer mode of your browser and search for “jar” to g
There is no public key available for the following key IDs
今天在debian/ubuntu下运行apt update刷新更新源的时候却遇到 “There is no public key available for the following key IDs” 的问题,具体表现为以下错误提示: W:There is no public key available for the following key IDs: 3B4FE6ACC0B21F32, W:There is no public key available for the following key IDs: 3
FreeBSD11安装DirectAdmin之后Proftpd无法启动的问题
修改/etc/proftpd.conf ScoreboardFile /var/run/proftpd/proftpd.pid 修改为 ScoreboardFile /var/run/proftpd.pid 与/etc/newsyslog.conf中的/var/run/proftpd.pid保持一致。