2 Star 0 Fork 0

木头人小站/nginx_config

Create your Gitee Account
Explore and code with more than 12 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
MIT

项目介绍

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

MIT License Copyright (c) 2022 木头人小站 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

nginx常用配置,个人总结学习使用。 expand collapse
HTML and 4 more languages
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/itmtr/nginx_config.git
git@gitee.com:itmtr/nginx_config.git
itmtr
nginx_config
nginx_config
master

Search

Dd8185d8 1850385 E526c682 1850385