服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. nginx
  3. nginx – 在nginx.conf文件中重写为HTTP或HTTPS
Intereting Posts
用bash捕获输出以logging并提醒用户 在本地计算机上运行SQL Server Express,并使用management studio访问它 ufw否认networking Apache不向本地主机提供HTTPS 两个url,一个网站,不同的域名 窗户覆盖杯子司机 BIOS更新失败DELL R620 Windows Server 2016容器? Azure AD,InTune,TeamViewer 从wowza连接到RTSPstream的问题 我怎样才能优化IIS热身与许多网站的服务器? (例如上演热身。) AD从DMZ到企业局域网的信任安全考虑 戴尔PERC 4 / DC(PowerEdge 2850)和ZFS Apache不尊重“要求主机”,但“要求IP”的作品 LeftHand SAN如何在生产环境中执行?

nginx – 在nginx.conf文件中重写为HTTP或HTTPS

在nginx.conf文件中,是否可以根据当前连接是否安全重写为HTTP或HTTPS?

一些我想要做的伪代码。

location ^~ /test_api { if (secured connection) rewrite "/test_api" https://www.somedomain.com/test_api break; else rewrite "/test_api" http://www.somedomain.com/test_api break; } 

谢谢。

  • 重新启动nginx后端而不会丢失请求
  • Opscode厨师nginx从源代码编译报告成功运行,但什么都不做
  • nginx和php-fpm – 不能写PHP错误日志
  • nginx – select性重写一个位置块
  • 我怎样才能让Nginx告诉Firefoxcaching我的内容?

  • Nginx自动域名redirect
  • Nginx不读取符号链接文件?
  • 通过nginx反向代理中的cookie名称删除cookie
  • nginx gzip在php js和css处理器上不起作用
  • 如何在传递给fastcgi后端之前检查是否存在不可读取的文件?

你正在寻找$scheme 。

 rewrite /test_api $scheme://www.example.com/test_api break; 
  • phpMyAdmin重写为nginx
  • Nginx的 – redirect所有url的根(不显示url中的HTML页面?)
  • Nginx:用附加请求修改响应主体
  • nginx的try_filesredirect尾部的斜杠和403禁止
  • Nginx“重写或内部redirect周期,而内部redirect到”/index.html“”
  • nginx spdy支持不起作用
  • Nginx和Nagios通过FastCGI处理程序,403错误
  • 在ubuntu EC2实例上由nginx服务的用户数
  • 通过php / html格式将file upload到nginx服务器
  • 安装php5-fpm,缺lesspool.d目录

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy