1 Star 0 Fork 13

luna/Meink

forked from HanJinyan/Meink 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nginx.conf 778 Bytes
一键复制 编辑 原始数据 按行查看 历史
HanJinyan 提交于 2020-04-20 16:23 . update
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name www.example.com;
charset utf-8;
access_log /root/www.example.com.log;
location /(css|img)/ {
access_log off;
expires 1d;
root "/root/";
try_files $uri @backend;
}
location / {
try_files /_not_exists_ @backend;
}
location @backend {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/chobits01/Meink.git
[email protected]:chobits01/Meink.git
chobits01
Meink
Meink
master

搜索帮助