我正在尝试使用 nginx 通过 https 连接设置 ssh。我还没有找到任何有效的例子,所以任何帮助将不胜感激!
~$ cat .ssh/config
Host example.net
Hostname example.net
ProtocolKeepAlives 30
DynamicForward 8118
ProxyCommand /usr/bin/proxytunnel -p ssh.example.net:443 -d localhost:22 -E -v -H "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Win32)"
~$ ssh user@example.net
Local proxy ssh.example.net resolves to 115.xxx.xxx.xxx
Connected to ssh.example.net:443 (local proxy)
Tunneling to localhost:22 (destination)
Communication with local proxy:
-> CONNECT localhost:22 HTTP/1.0
-> Proxy-Connection: Keep-Alive
-> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Win32)
<- <html>
<- <head><title>400 Bad Request</title></head>
<- <body bgcolor="white">
<- <center><h1>400 Bad …Run Code Online (Sandbox Code Playgroud) 谁能推荐我一个分析鱿鱼日志的好工具?
我目前正在使用SARG。有什么更好的吗?
我需要轻松查看哪些网站被访问/拒绝、何时以及由谁访问。
有一个鱿鱼分析仪列表。其中一些似乎已经过时。
Squid:日志文件分析
我最近将我的 docker 从 1.4 更新到 1.5(使用包lxc_docker)。
从那以后,docker daemon 发送这样的错误(对于每个命令):
$ docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
FATA[0000] Error response from daemon: 404 page not found
Run Code Online (Sandbox Code Playgroud)
但是如果我使用以前版本的客户端,我会得到很好的答案:
$ /usr/bin/docker-old version
Client version: 1.4.0
Client API version: 1.16
Go version (client): go1.3.3
Git commit (client): 4595d4f
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef
Run Code Online (Sandbox Code Playgroud)
好像是代理设置(HTTP_PROXY …
这似乎是一个非常基本的问题,但我很难找到一个简单的解决方案,因此感谢您对我的帮助和耐心:
我想配置我的 Apache 代理服务器以重定向某些 URL,例如,对 www.olddomain.com 的 Web 浏览器 HTTP 请求被传递到代理服务器,然后代理服务器将请求路由到 www.newdomain.com,后者发送响应到代理服务器,然后将其传递回 Web 浏览器。
看起来很简单,但我不知道如何在 Apache 上实现这一点。我知道 Squid/Squirm 提供了这个功能,所以我猜我错过了一些非常基本的东西。我知道我可以使用 RewriteRule 来动态修改 URL 并将其传递给代理服务器,但我实际上想要做相反的事情,即代理服务器接收原始 URL,应用 RewriteRule,然后将 HTTP 请求转发到新的网址。
希望这是有道理的。在此先感谢您的帮助。
我正在尝试使用需要基本 HTTP 身份验证的服务器提供的服务,但是我使用的应用程序不支持身份验证。我想要做的是创建一个代理,使我的无身份验证应用程序能够通过代理(将添加身份验证信息)连接到需要身份验证的服务器。我确信这是可以做到的,但是我对那里的代理数量感到不知所措,无法找到如何做到这一点的答案。
基本上,我想要做的就是让代理服务于这个 URL:
http://username:password@remoteserver/path
作为这个网址:
http://proxyserver/path
我可以在 Linux 上运行它,但如果我也可以在 Windows 上运行它,那就更好了。开源或至少免费是必须的。一个很大的好处是它的设置相当简单。
如何修复 apache2“proxy_http:error”AH01102: 从远程服务器 localhost:4382 读取状态行时出错。
我有一个 apache2 Web 服务器,用于在后端为一些 Nodejs 应用程序提供服务。
Apache2网络服务器版本:服务器版本:Apache/2.4.41(Ubuntu)服务器构建:2019-08-21T20:43:05
Nodejs版本:v10.18.1
蒙戈数据库版本:v4.0.15
我们在所有后端应用程序“proxy_http:错误”AH01102:从远程服务器本地主机读取状态行时出错:4382 上都受到以下错误/错误(请参阅日志)的困扰。
[Mon Apr 27 20:09:05.697271 2020] [proxy_http:error] [pid 26792:tid 140063099688704] (70007)The timeout specified has expired: [client 178.153.198.97:52385] AH01095: prefetch request body failed to 127.0.0.1:4381 (localhost) from 178.153.198.97 (), referer: https://www.example.com/sub-admin/menus/add-menu
[Mon Apr 27 20:21:51.617095 2020] [proxy_http:error] [pid 26764:tid 140062901626624] (104)Connection reset by peer: [client 178.153.195.206:61268] AH01102: error reading status line from remote server localhost:4382, referer: http://www.example.com/restaurant/dashboard
[Mon Apr 27 20:21:51.617117 2020] [proxy:error] [pid 26764:tid 140062901626624] …Run Code Online (Sandbox Code Playgroud) 对于小型家庭网络——两台笔记本电脑、两台台式机和主服务器——我应该期待通过在主服务器上运行 Squid 获得多少收益?我完全理解为小型家庭网络运行缓存名称服务器的价值,但我不确定运行 HTTP 缓存代理是否有任何价值。
主服务器对网络上的所有其他计算机进行完整的 NAT,以防万一。
RouterOS 文档展示了如何通过 RouterOS 内置的 HTTP 代理透明地代理所有 Web 流量:
/ip firewall nat
add in-interface=ether1 dst-port=80 protocol=tcp action=redirect to-ports=8080 chain=dstnat
/ip proxy
set enabled=yes port=8080
Run Code Online (Sandbox Code Playgroud)
我想在另一台机器上运行代理,以便我可以利用 Squid 等中提供的更复杂的过滤规则。但是,如果我使用 NAT 将流量重定向到另一台运行 Squid 的计算机,它将不起作用,因为需要重写 HTTP 请求才能成为代理 HTTP 请求;仅重定向流量就会从 Squid 中产生错误的请求错误。