首页 > 系统相关 >记录Nginx配置

记录Nginx配置

时间:2023-02-25 11:22:56浏览次数:42  
标签:set http Forwarded header 配置 Nginx Host proxy 记录

# Proxy to the Airsonic server
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host $http_host;
#proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Port 444;
#proxy_set_header Host $http_host;
proxy_set_header Host $host:444;
proxy_max_temp_file_size 0;
proxy_pass http://192.168.0.197:4040;
proxy_redirect http:// https://;
}
————————————————
版权声明:本文为CSDN博主「杨浦老苏」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/wbsu2004/article/details/126260075

标签:set,http,Forwarded,header,配置,Nginx,Host,proxy,记录
From: https://www.cnblogs.com/beilong/p/17154018.html

相关文章

  • nginx、http、tomcat虚拟主机格式
    httpd<virtualhost *:80>servername ​​www.a.com​​documentroot /var/www/html</virtualhost>nginxserver{listen 80;server_name ​​www.a.com;​​root html;i......
  • 1_log4j1和log4j2的简单配置
     项目中添加依赖log4j2<dependency><groupId>org.apache.logging.log4j</groupId><artifactId>log4j-core</artifactId><version>2.12.1</version></dependenc......
  • 1_log4j1和log4j2的简单配置
     项目中添加依赖log4j2<dependency><groupId>org.apache.logging.log4j</groupId><artifactId>log4j-core</artifactId><version>2.12.1</version></dependenc......
  • 1_log4j1和log4j2的简单配置
    ​ 项目中添加依赖log4j2<dependency><groupId>org.apache.logging.log4j</groupId><artifactId>log4j-core</artifactId><version>2.12.1</version>......
  • 信息安全之基线管理与安全配置—Windows安全配置
    一、Windows安全配置简介二、账户配置根据需求可以进行相关配置(里面有说明)1、密码策略  密码最短期限:意思就是密码更改后,多少天内能再次更换密码2、用户权......
  • Ubuntu Server 20.04 网卡启动及配置
    前言由于网络环境问题,联网安装会导致报错,故在安装期间disable了所有网卡,下面记录装好之后打开的过程。查看网卡信息ipa1得到本机的所有网卡信息,例如我这边网卡为eth0打......
  • VSCode配置git
    1.背景vscode中基础git;前提:本地已经安装好了git 有这样的菜单,并且可以正常上传下载代码2.步骤步骤一:找的git的安装路径:D:\ProgramFiles\Git步骤二:配置环......
  • SmallDesktopDisplay V1.4.3 学习记录 程序基本流程
    SmallDesktopDisplayV1.4.3学习记录声明:原作者:Misaka;修改:微车游;再次修改:丘山鹤项目地址:https://github.com/SmallDesktopDisplay-team/SmallDesktopDisplay本文引用......
  • Docker配置https证书案例
    目录一.安装harbor1.安装docker2.安装dockercompose3.解压harbor软件包二.配置harbor服务器配置https证书1.修改harbor配置文件2.使得配置生效3.测试服务三.配置harbor服......
  • 14.配置中心
    加载配置会优先加载配置中心里的,其次才是加载配置文件里的导入依赖下载并启动NacosServer前面注册中心已经弄过了,配置中心也是用的nacos,所以这一步不需要弄了下载测......