2023-10-21发表2024-07-22更新Nginx / OpenRestyOpenResty安装以及WAF入门OpenResty是一个基于Nginx的强大Web服务器,可以当做Nginx使用OpenResty下载地址解压启动1start nginxWAF组件下载地址解压OpenRestyPerl下载地址直接下一步下一步安装就OK
2023-02-02发表2024-07-22更新NginxNginx输入用户名密码访问前期操作12345678910111213141516171819202122232425#查看运行容器的IDdocker ps #进入nginx容器docker exec -it 容器ID /bin/bash #容器内部操作#更新软件源apt-get update #安装apache2-utilsapt-get install apache2-utils #创建用户名htpasswd -c /etc/nginx/passwd.db 用户名 #输入密码(自动弹出)New password: Re-type new password: #查看用户和密码cat /etc/nginx/passwd.db #退出容器exit阅读更多
2022-05-23发表2024-07-22更新NginxNginx部署History模式的Vue项目刷新存在404修改nginx配置12345678location /vue3 { alias E:/StudySpace/2022/vue3/dist; index index.html; if (!-e $request_filename) { rewrite ^/(.*) /vue3/index.html last; break; }}阅读更多