ctfshow-web ctfshow nginx shell

How to Configure Nginx reverse proxy the domain

未测试过,自己记录待用 http { resolver 8.8.8.8; upstream example { server http://example.com resolve [use_last] ...; keepalive 1024; } 第二种负载均衡 upstream mytarget{ ......
Configure reverse domain Nginx proxy

nginx 配置虚拟目录

需求配置静态资源目录访问 location /npm { alias /usr/npm; index index.html; autoindex on;#开启目录访问 access_log off; expires 30d; } 多级子目录下 axios@0.19.0\dist\axios.min. ......
目录 nginx

istio shell

#!/bin/sh # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complian ......
istio shell

ctfshow web入门 php特性 109-115

109-110 需要了解 PHP原生类 112-114 使用伪协议 重点 ​ 1、了解PHP原生类(内置类)、匿名类 ​ 2、了解伪协议、过滤器 ​ 3、了解引用赋值 ​ 4、了解超全局变量 ​ 5、了解 is_numeric() 与 trim() 缺点 web109 highlight_file( ......
特性 ctfshow 109 115 web

nginx 配置小程序校验文件

1、参考 nginx配置小程序校验文件 location /riAwbtUM3G.txt { default_type text/html; return 200 "43191f769a41f4035dbc1e6d9d0cfa32"; } ......
文件 程序 nginx

查看shell使用版本&配置环境变量

引用:https://blog.csdn.net/a374519711/article/details/128596411 系统中可能会安装多个shell 比如 /bin/bash 、 /bin/zsh等, 找到shells的配置文件查看安装了多少shell 查看shell 查看当前使用的shell ......
变量 版本 环境 shell amp

nginx 1.20.2 的二进制编译安装

本测试环境为 cetos7.9 1.安装依赖 yum -y install gcc make gcc-c++ libtool pcre pcre-devel zlib zlib-devel openssl openssl-devel perl-ExtUtils-Embed 2.创建用户组以及用户 g ......
二进制 nginx 20

3-nginx

2、正向代理和反向代理的区别是什么? 正向代理是一个位于客户端和原始服务器之间的服务器,为了从原始服务器取得内容,客户端向代理发送一个请求并指定原始服务器,然后代理向原始服务器转交请求并将获得的内容返回给客户端。代理服务器和客户端处于同一个局域网内。 比如说fanqiang。我知道我要访问谷歌,于是 ......
nginx

nginx配置都媒体文件Content-Type

用nginx做代理用来做多媒体文件的下载,因为有些文件名后缀类型没有匹配。所以返回个请求端的响应头会是: Content-Type: application/octet-stream,给请求端造成困扰。例如:acc 文件需要是: Content-Type: audio/aac,wav 文件需要是:C ......

nginx 安装SSL证书

/usr/local/nginx/sbin/nginx -V 看一下是否有 with-http_ssl_module 模块 # HTTPS server user nginx nginx;worker_processes 8;#error_log logs/error.log;#error_log ......
证书 nginx SSL

centos7.2 NGINX 源码安装编译

条件介绍 百度云 密集计算型ic3 CPU:2核 内存:2GB 磁盘:40G CentOS / 7.2 x86_64 (64bit) 1、安装相关的依赖包 [root@centos7_4 ~]# yum -y install gcc gcc-c++ autoconf automake zlib zl ......
源码 centos7 centos NGINX

nginx hyperf ssl https 环境。hyperf-https-ssl

user nginx nginx;worker_processes 8;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;even ......
hyperf https hyperf-https-ssl ssl 环境

nginxWebUI--一款更好的管理nginx的软件

背景 博主之前搭建了一套k8s系统用来管理开发中常用的软件,以及项目的快速部署。但是在使用的过程中有个麻烦的问题是在于,k8s暴露出来的服务的端口号是限定范围内随机的。所以在我们访问部分服务的时候需要不得已的带上一些端口号,这样有点太麻烦了。能不能简单一点,正好我手上有个域名,这样我用nginx+二 ......
nginxWebUI nginx 软件

Shell基础

第一章 Shell基础 1 shell脚本介绍 什么是shell脚本? 什么是shell命令? $ ls $ cd $ pwd # 也就是liniux命令 shell脚本就是一系列shell命令的集合,还可以加入一些逻辑操作(if else for)将这些命令放到一个文件中。 文件 shell命令【 ......
基础 Shell

shell命令调用http接口(curl方式)

shell命令调用http接口(curl方式) 样例 1、curl -H "Content-Length:0" -X GET "http://127.0.0.1:8080" 2、curl -H "Content-Type: application/json" -H "connection:Keep- ......
接口 命令 方式 shell http

Tomcat 与 Nginx,Apache的区别

Apache指的应该是Apache软件基金会下的一个项目—— Apache HTTP Server Project Nginx同样也是一款开源的HTTP服务器软件(当然它也可以作为邮件代理服务器、通用的TCP代理服务器)。 Tomcat是Apache基金会下的另外一个项目,与Apache HTTP ......
Tomcat Apache Nginx

docker运行nginx

运行nginx镜像 我们打开网易蜂巢镜像中心 https://c.163yun.com/hub#/m/home/ 搜索nginx,可以看到有两个nginx,他们的名字和头上和图标都不一样,一个是鲸鱼,一个是两个球. 带有鲸鱼的镜像表示这个镜像是从官网的镜像中心复制过来的.这个镜像与docker的镜像 ......
docker nginx

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'

错误描述: root@cef54a23d0c1:/home/xxx/LightSpeech# conda activate lightspeech CommandNotFoundError: Your shell has not been properly configured to use 'co ......

更改nginx配置文件conf/nginx.conf

Nginx 主配置文件 `nginx.conf` 一般包括以下几个部分: - 全局块:包括工作进程数、worker 连接数等全局设置;- events 块:包括 Nginx 的事件模型、worker 连接数等事件相关的设置;- HTTP 块:包括 HTTP 模块的设置、server 块等;- mai ......
nginx conf 文件

linux卸载nginx

卸载 Linux 中的 Nginx,可以按照以下步骤进行操作: 1. 停止 Nginx 服务。在卸载 Nginx 服务之前,需要先停止 Nginx 服务器。可以使用以下命令停止 Nginx 服务: ``` sudo systemctl stop nginx ``` 如果 `systemctl` 命令 ......
linux nginx

统一观测丨使用 Prometheus 监控 Nginx Ingress 网关最佳实践

在 Kubernetes 集群中,我们通常使用 “Nginx Ingress” 实现集群南北向流量的代理转发,Nginx Ingress 基于集群内 Ingress 资源配置生成具体的路由规则。 ......
网关 Prometheus Ingress Nginx

Linux下Shell脚本输出Json格式结果

用NTP命令举例说明 脚本如下: #!/bin/bash #echo " start " resp=$(timedatectl list-timezones)#要执行的命令,并将命令结果赋值给变量 #echo -e $resp | sed "s/ /\n/g"#可以对结果变量进行处理,想要的操作 d ......
脚本 格式 结果 Linux Shell

【环境搭建】docker+nginx部署PHP

目的 使用docker容器完成nginx的安装以及部署PHP网页 步骤 一、 安装nginx 1. 拉取Nginx镜像 docker pull nginx //拉取镜像 docker images //查看本地镜像 这里注意需要记一下nginx的IMAGE ID,我这里的ID是605c 2. 创建N ......
环境 docker nginx PHP

nginx 热加载stream模块

报错: nginx: [emerg] unknown directive "stream" in /usr/local/nginx/conf.d/ssh.conf 判断模块是否存在 进入二进制部署包解压后目录 添加模块,与之前加载的模块一致,并新添加 --with-stream 模块 ./confi ......
模块 stream nginx

nginx上传文件超出默认大小限制-附件,提示:413 Request Entity Too Large

Nginx 限制文件上传大小,相应配置参数:client_max_body_size 注意:该参数在nginx.conf中默认是没有配置的,不配置的情况下,nginx默认限制请求附件大小为:1M。 即:默认当你通过nginx代理上传附件,大于1M的文件时,浏览器会抛出如下异常。 处理方式: 找到ng ......
附件 大小 Request 文件 Entity

nginx负载均衡和反向代理的区别

nginx负载均衡和反向代理的区别有:1、实现负载均衡一定要需要反向代理;2、反向代理主要是缓存东西,而负载均衡则是减少高并发情况;3、负载均衡是做反向代理的目的之一。 下面是详细介绍: 负载均衡需要通过反向代理来实现。 反向代理就是指nginx作为前端服务器,将请求转发到后端,再将后端服务器的结果 ......
nginx

nginx 下监听同一端口通过路径转发不同服务

注意 v1d2 最优先匹配 server { listen 80; server_name localhost; location /v1d2 { proxy_pass http://127.0.0.1:8088; } location / { root /data/dist; try_files ......
端口 路径 nginx

Shell 文件包含

Shell 文件包含 和其他语言一样,Shell 也可以包含外部脚本。 这样可以很方便的封装一些公用的代码作为一个独立的文件。 这就是可以解决怎么引入公共函数了 注意source未必有效,因为有些OS默认的是sh而非bash Shell 文件包含的语法格式如下: . filename # 注意点号( ......
文件 Shell

Shell 输入/输出重定向

Shell 输入/输出重定向 大多数 UNIX 系统命令从你的终端接受输入并将所产生的输出发送回到您的终端。 一个命令通常从一个叫标准输入的地方读取输入,默认情况下,这恰好是你的终端。 同样,一个命令通常将其输出写入到标准输出,默认情况下,这也是你的终端。 重定向命令列表如下: | 命令 | 说明 ......
Shell

Shell 函数

Shell 函数 各种语言都有函数或者别的称呼,说白了就是封装一个可重复使用的代码快,起一个名称带一些参数,给一个返回值。 linux shell 可以用户定义函数,然后在shell脚本中可以随便调用。 shell中函数的定义格式如下: [ function ] funname [()] { act ......
函数 Shell