![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
[纳川]
日拱一卒无有尽,功不唐捐终入海
展开
-
docker挂载目录安装nginx
如果不创建,会报错: unknown: Are you trying to mount a directory onto a file (or vice-versa)?原创 2022-08-10 17:44:27 · 891 阅读 · 0 评论 -
CentOS 7 安装nginx
配置源: rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm yum install -y nginx 启动: service nginx restart原创 2019-06-20 16:13:09 · 141 阅读 · 0 评论 -
nginx配置文件 location段 匹配优先规则 附 root 和 alias 的区别
原文位置:https://blog.csdn.net/dengyadeng/article/details/81381245 NGINX location 在配置中的优先级 配置文件示例如下 location = / { # 仅仅匹配请求 / [ configuration A ] } location / { # 匹配所有以 / 开头的请求。 # 但是如果有更长的同...转载 2019-06-21 19:08:45 · 304 阅读 · 0 评论 -
nginx配置http 强制跳转https
server { listen 80; server_name clzblog.site *.clzblog.site; if ($host = clzblog.site) { rewrite ^(.*)$ https://www....转载 2019-09-27 13:09:54 · 241 阅读 · 0 评论