NGINX
+97
日常学习记录,以及工作中遇到的一些问题。
展开
-
Nginx Rewrite (Nginx URL 重写)
**简介:**实现网站的跳转,例如用户访问q.com,将其跳转到v.com。**示例1:**用户访问http://192.168.246.149/abc/a/1.html地址时,通过rewrite重定向值http://192.168.246.149/c/b/2.htmlmkdir /usr/share/nginx/html/c/b -p //创建目录echo “/usr/share/nginx/html/c/b/2.heml” > /usr/share/nginx/html/c/b/2.h原创 2020-09-25 15:48:34 · 721 阅读 · 0 评论 -
基于Nginx的动态网站环境部署(LNMP)
**1、Linux部署 **关闭防火墙和selinuxsystemctl stop firewalldsystemctl disable firewalldsetenforce 0vim /etc/selinux/configSELINUX=disabled2、Nginx部署Nginx官网:http://nginx.org/en/download.htmlsudo yum install yum-utilsvim /etc/yum.repos.d/nginx.repo [nginx原创 2020-09-23 19:25:40 · 1154 阅读 · 0 评论