nginx
文章平均质量分 56
SongJingzhou
这个作者很懒,什么都没留下…
展开
-
nginx代理ceph网关,解决跨域访问
user root;events {http {gzip on;server {return 204;原创 2023-12-23 00:27:16 · 586 阅读 · 0 评论 -
nginx 实现根据访问端跳转指定页面
实现在移动端访问某链接重定向到指定页面nginx.conf 配置server {listen 443;server_name www.songjingzhou.com;ssl on;... location ~ / { include mobile_site_r...原创 2019-12-20 09:20:40 · 2989 阅读 · 0 评论 -
nginx: [error] invalid PID number "" in "/run/nginx.pid"
有时候配置了nginx后重新启动时 报nginx: [error] invalid PID number "" in "/run/nginx.pid" 错误解决方法1.sudo nginx -t 获取nginx的配置文件信息,及检查配置是否有误2. kill nginx 进程3.sudo nginx -c /etc/nginx/nginx.conf4. sudo...原创 2019-11-08 14:31:41 · 3143 阅读 · 0 评论 -
nginx 配置认证登陆
一: 使用密码工具生成密码文件htpasswd -c dir (生成的文件目录) username (用户名)如 htpasswd -c passwd song,表示在当前目录下生成用户名为song的密码文件 passwd若无htpasswd命令需安装此命令yum install htttpd二:配置nginx在nginx.conf 文件中添加两行auth_ba...原创 2019-08-07 16:12:06 · 557 阅读 · 0 评论