2 Star 0 Fork 0

木头人小站 / nginx_config

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

项目介绍

nginx 的一些简单常用的配置,自己学习的一些记录。

目录结构

nginx_config
├── config      // 主要的配置
├── html        // 访问的资源
├── nginx       // nginx安装目录 需要自己安装
├── tool        // 使用到的工具
├── web-serve   // 服务端项目
├── web-vue     // vue单页面前端项目

使用方法

克隆该仓库到本地。

nginx 安装在 nginx 目录下。

nginxconf文件夹内的nginx.conf文件内添加以下include ../../config/*.conf;。 注意:要添加在http块中。

按照 hosts配置.txt 中的配置修改 hosts 文件,使得测试域名在本地可以访问。

启动 nginx 即可访问。

查看文档

https://blog.itmtr.cn/archives/nginx-config

About

nginx常用配置,个人总结学习使用。 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://gitee.com/itmtr/nginx_config.git
git@gitee.com:itmtr/nginx_config.git
itmtr
nginx_config
nginx_config
master

Search

10d9f8b4 4838521 8bde8327 4838521