[root@localhost conf]# cd conf.d/
[root@localhost conf.d]# ll
总用量 12
-rwxr-xr-x. 1 richmail richmail 5245 2月 3 23:25 mail.conf
-rwxr-xr-x. 1 richmail richmail 1484 2月 4 09:11 note.conf
[root@localhost conf.d]# less note.conf
proxy_cache_valid 0;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 100m;
proxy_connect_timeout 1m;
proxy_send_timeout 1m;
proxy_read_timeout 1m;
proxy_temp_file_write_size 640k;
proxy_buffer_size 320k;
proxy_buffers 4 320k;
proxy_buffering off;
proxy_store off;
proxy_busy_buffers_size 640k;
proxy_ignore_client_abort on;
proxy_next_upstream error timeout invalid_header http_503 http_502;
proxy_hide_header ETag;
location / {
index index.html index.htm index.php index.jsp;
root /home/richmail/nginx/html;
}
location /webnote {
index index.html index.htm index.php index.jsp;
proxy_pass http://127.0.0.1:8011;
}
location ~ healthcheck.htm$ {
index index.html index.htm index.php index.jsp;
root /home/richmail/nginx/html;
}
location /noteres {
index index.htm index.html public.html;
root /home/richmail/web/html;
proxy_cache tmp_cache;
proxy_cache_valid 20m;
expires 2h;
}
[root@localhost conf.d]#
分享到:
相关推荐
nginx 配置模板,正常项目中使用的一些配置。 server { listen 80; server_name www.test.com; charset utf-8; access_log logs/access.log; root "E:/front"; proxy_set_header Host $host; set $uid "-"; ...
nginx-configuration, 创建和管理 Nginx 配置的实用程序和模板 Nginx 配置针对各种用例的Nginx 配置模板集合,主要用于运行 PHP web应用程序。安装sudo git clone ...
nginx1.21.5 nginx.conf配置文件
(2)部署配置(客户端) 1)配置nginx 在对应server中添加状态信息页面location,启动状态信息服务 location /server-status { stub_status on; allow 127.0.0.1; deny all; access_log off; } 测试...
nginx反向代理跨域问题解决的配置文件,很好地窝窝网。
通用Nginx配置模板 Nginx模板 这是用于混合设置的我的个人Nginx模板。 我正在尝试将此nginx配置为通用; 无论是wordpress还是static html等等。 我的目标是启用缓存,SEO友好的URL,Cloudflare支持,添加h5bp,ngx_...
nginx.conf配置文件,反向代理,负载均衡--轮询、权重、IPHASH等
nginxWebUI是一款图形化管理nginx配置得工具, ... nginxWebUI并不能涵盖nginx所有功能, 但能覆盖nginx日常90%的功能使用配置, 平台没有涵盖到的nginx配置项, 可以使用自定义参数模板, 在conf文件中生成配置独特的参数。
我只是添加新的配置文件来覆盖默认的NGINX配置。 根据nginx.conf文件,NGINX在启动时会包含模块配置文件(/etc/nginx/modules-enabled/*.conf),然后是特定的配置摘要(/etc/nginx/conf.d/ * .conf),用于管理...
增加设置多个nginx配置模板,可以实现负载均衡、自动配置虚拟主机等高级的nginx的功能 nginx配置模板为nginxconf/template/domainlocalconf.tpl #该项目使用帮助 由于我在windows上编译的,暂时没有找到交叉编译...
wordpress-nginx:WordPress特定的Nginx配置模板和最佳实践!
bara还有一个概念就是Nginx的配置文件模板,Nginx的配置文件是根据这个模板动态创建的,这个模板如果有{{upstream}}占位符,则会被bara系统自动根据运行中的容器来替换为一个upstream列表。 标签:bara
nginx-pv.yaml,nginx-set.yaml等等
此容器允许您使用 nginx 配置中的 Docker 链接设置的环境变量。 用法 将您的配置挂载到/etc/nginx/sites-templates ,最好是只读的。 要捕获日志,请将可写目录挂载到/var/log/nginx 。 HTTP (80) 和 HTTPS (443) ...
2. 支持分支发布, 根据 Nginx 机器名和分支名获取配置文件链接; 3. 提供获取和增删改 Nginx upstream API; 4. Nginx upstream 信息放在 mysql, 根据模板生成upstream.conf, 机器列表实时从服务管理系统获取; 5. 支持...
windows下nginx服务器的配置,rtmp模板已编译,亲测可正常推流。解压后运行nginx.exe文件即可。windows下nginx服务器的配置,rtmp模板已编译,亲测可正常推流。
以上简单描述提供了部署Nginx的基本步骤,但根据具体情况可能需要进一步配置Nginx,如设置虚拟主机、SSL证书、反向代理、负载均衡等。确保根据实际需求和安全要求进行适当的配置和调整。同时,为保障系统安全,建议...
主要介绍了Yii2配置Nginx伪静态的方法,结合实例形式分析了Yii2框架针对Nginx伪静态的相关配置技巧,需要的朋友可以参考下
带有nginx和consul模板的Docker映像,用于从consul动态更新其配置文件。 该镜像基于构建。 如何使用这张图片? docker镜像是通过自动构建的。 在Dockerfile中 FROM yeasy/nginx-consul-template:latest 本地跑步 $...
采用YAML架构,并将其转换为格式正确(TODO)的Nginx配置。 读取根目录中的config.yml,应采用以下格式: --- templateDir: parameterFile: defaultsDir: 您的参数文件必须开始: !NginxConfig 否则,该对象...