V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  pew  ›  全部回复第 2 页 / 共 3 页
回复总数  43
1  2  3  
2017-07-08 23:41:51 +08:00
回复了 swordspoet 创建的主题 问与答 想买一个 Kindle ,有啥好的建议?
kp3 吧,感觉缝小一些,不易进灰。
2017-06-23 15:38:35 +08:00
回复了 pew 创建的主题 NGINX Squid 反向代理 https 到 nginx,在源站上设置 301 跳转不生效
@coolloves nginx 就加了个 301
nginx listen 80;
server_name www.aaa.com aaa.com ;
add_header Strict-Transport-Security max-age=15768000;
return 301 https://www.aaa.com$request_uri;
2017-06-23 13:53:56 +08:00
回复了 pew 创建的主题 NGINX Squid 反向代理 https 到 nginx,在源站上设置 301 跳转不生效
@coolloves cache_peer 1.2.3.4 parent 80 0 no-query originserver login=PASS name=web01
这样改,无法打开网页,提示重定向次数过多--
2017-06-23 13:39:41 +08:00
回复了 pew 创建的主题 NGINX Squid 反向代理 https 到 nginx,在源站上设置 301 跳转不生效
@coolloves 改成 80 的话就是下面这样
# Recommended minimum configuration:
#

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines

acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

#
# Recommended minimum Access Permission configuration:
#
# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# Only allow cachemgr access from localhost
http_access allow localhost manager
http_access deny manager

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
# http_access allow all

# Squid normally listens to port 3128
visible_hostname localhost

# http_port 3128

http_port 80 accel vhost vport
https_port 443 cert=/etc/squid/ssl/123.pem key=/etc/squid/ssl/123.key accel defaultsite=www.aaa.com
ssl_unclean_shutdown on
cache_peer 1.2.3.4 parent 80 0 no-query no-digest originserver name=web01 login=PASS ssl sslflags=DONT_VERIFY_PEER front-end-https=on
acl sites_server_1 dstdomain .aaa.com
cache_peer_access web01 allow sites_server_1
http_access allow web01

# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /var/spool/squid 10000 32 512




# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

#
# Add any of your own refresh_pattern entries above these.
#
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
2017-06-23 12:04:52 +08:00
回复了 pew 创建的主题 NGINX Squid 反向代理 https 到 nginx,在源站上设置 301 跳转不生效
@coolloves
貌似不行,改了直接无法访问了
The system returned:

(71) Protocol error (TLS code: SQUID_ERR_SSL_HANDSHAKE)
Handshake with SSL server failed: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

此代理和远端主机无法为处理您的请求在相互可接受的安全设置上协商一致。有可能远端计算机不支持安全连接,或者代理对主机的安全凭据不认可。
@wmc 666
参加一手活动看看,说不定就中了。
2017-05-07 23:51:09 +08:00
回复了 pew 创建的主题 Linux 网上下载了个所谓的云免脚本,懂 shell 大神帮看看 gzexe 压缩
@ihciah 感谢感谢,我来研究一波
2017-05-07 19:03:58 +08:00
回复了 pew 创建的主题 Linux 网上下载了个所谓的云免脚本,懂 shell 大神帮看看 gzexe 压缩
@ihciah 解压了,貌似没查到壳
2017-05-07 17:57:47 +08:00
回复了 pew 创建的主题 Linux 网上下载了个所谓的云免脚本,懂 shell 大神帮看看 gzexe 压缩
@bearqq 那就可能是二进制,得不到明文-。-
2017-05-07 17:56:30 +08:00
回复了 pew 创建的主题 Linux 网上下载了个所谓的云免脚本,懂 shell 大神帮看看 gzexe 压缩
@bearqq 确实管用,不过得出的文件打开是乱码==,不是到是什么格式的。。。
2017-05-07 17:22:27 +08:00
回复了 pew 创建的主题 Linux 网上下载了个所谓的云免脚本,懂 shell 大神帮看看 gzexe 压缩
@ihciah 求问怎么解压
2017-05-07 17:22:10 +08:00
回复了 pew 创建的主题 Linux 网上下载了个所谓的云免脚本,懂 shell 大神帮看看 gzexe 压缩
@bearqq 一改就没法运行了--
2017-05-06 16:07:19 +08:00
回复了 pew 创建的主题 Linux 网上下载了个所谓的云免脚本,懂 shell 大神帮看看 gzexe 压缩
@linhua 这个能作用到二级目录吗,它是执行的时候在 /tmp 下新建一个 /tmp.XXXX 文件夹,然后把脚本解压其中
2017-05-06 15:58:46 +08:00
回复了 pew 创建的主题 Linux 网上下载了个所谓的云免脚本,懂 shell 大神帮看看 gzexe 压缩
@linhua 这个厉害,我试试
2017-05-06 15:43:26 +08:00
回复了 pew 创建的主题 Linux 网上下载了个所谓的云免脚本,懂 shell 大神帮看看 gzexe 压缩
@kmahyyg 嗯,但它也是解压到"$gztmp"这个文件夹运行了呀,就是一运行就删了,要不然就能找到解压的安装脚本了
2017-05-06 15:29:18 +08:00
回复了 pew 创建的主题 Linux 网上下载了个所谓的云免脚本,懂 shell 大神帮看看 gzexe 压缩
表示这个排版有点醉
2017-03-17 13:29:12 +08:00
回复了 pew 创建的主题 VPS z.com 的 vps 有用过的吗
@amazingd 个人可以啊,选 SG 的就是英文
1  2  3  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   992 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms · UTC 18:15 · PVG 02:15 · LAX 11:15 · JFK 14:15
Developed with CodeLauncher
♥ Do have faith in what you're doing.