![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Nginx
半笙彷徨
追求自我,超越自我
展开
-
使用Nginx将http转https
最简单的方式,使用rewrite重写到httpsserver { listen 80; charset utf-8; server_name www.test.com; location ~ ^/(.*) { rewrite ^/(.*) https://www.test.com/$1 permanent; }}原创 2021-01-23 22:54:21 · 663 阅读 · 0 评论 -
Centos下Nginx安装
一、nginx安装环境nginx是C语言开发,建议在linux上运行,本教程使用Centos6.5作为安装环境。gcc安装nginx需要先将官网下载的源码进行编译,编译依赖gcc环境,如果没有gcc环境,需要安装gcc:yum install gcc-c++ PCREPCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正则表转载 2017-06-06 18:26:35 · 380 阅读 · 0 评论