V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  smallaccount  ›  全部回复第 7 页 / 共 13 页
回复总数  257
1  2  3  4  5  6  7  8  9  10 ... 13  
2016-12-17 11:49:11 +08:00
回复了 Exin 创建的主题 然而并没有 Wikipedia 也运营不下去了?
捐了
2016-12-17 11:39:26 +08:00
回复了 forvtwoex 创建的主题 问与答 网站能不能这样免于开发 APP,省不少成本啊?
如果只是 v 站这种只有浏览回复功能的,可以
如果是要实现各种复杂功能的,不可以
2016-12-16 18:03:20 +08:00
回复了 mdaocao 创建的主题 分享发现 这两年的 iPhone ,耳机再也不像从前脏到挂了!!!
数据线耳机线不赶紧坏库克怎么挣钱
不好好替库克想想,哼,自私的果黑
(滑稽)
2016-12-16 12:27:09 +08:00
回复了 GreyChou 创建的主题 云计算 腾讯微云服务调整,免费用户直有 10G!
@Zzzzzzzzz
@whale
零几年貌似出了很多的网盘,这个网站称霸当时中国互联网啊,很多人用它来下载软件,我注册了没用过,因为网易当时有 256M 网盘。
2016-12-16 12:15:29 +08:00
回复了 smallaccount 创建的主题 NGINX nginx 取消 https 后发现 chrome 访问提示重定向过多无法访问。
@lslqtz 的确应该把配置 https 和取消 https 之后的两个配置文件都贴上去的。。。
2016-12-16 10:00:32 +08:00
回复了 smallaccount 创建的主题 NGINX nginx 取消 https 后发现 chrome 访问提示重定向过多无法访问。
@allenhu 非非非常感谢!!!
纯小白什么也不懂,我是按照 digitalocean 上给的教程配置的
https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-14-04

然后这个教程设置了 Strict-Transport-Security: max-age ,所以导致了上述的情况, http 直接无法访问,全部都跳转到 https 了,取消设置之后 http 和 https 都可以访问了。 digitalocean 设置的是 15768000 , 182.5 天。。。好吧,只能等用户自己清除了,我这边先把 https 加上去好了,等到半年后再把 https 撤下来,估计差不多。。


@lslqtz chrome 客户端缓存可能是无法解决了,但是终于知道原因了。
2016-12-15 22:35:45 +08:00
回复了 kn007 创建的主题 配件 各位用什么无线鼠标?有好推荐么?
双飞燕
2016-12-15 21:53:33 +08:00
回复了 Darek 创建的主题 Apple 今天被 Apple 客服怼了,客服评价还不是匿名的。
中国都是这样,垃圾的很,到处求好评,没好评就骚扰,反正他们时间多。
淘宝,京东,京东自营快递等等都是这样,现在谁还敢给差评。
2016-12-15 18:23:55 +08:00
回复了 smallaccount 创建的主题 NGINX nginx 取消 https 后发现 chrome 访问提示重定向过多无法访问。
@figofuture 问题和我一样,很多人都答非所为,目测没有题主解决。
2016-12-15 17:00:57 +08:00
回复了 tumbzzc 创建的主题 Python flask+nginx,静态文件使用 nginx 配置,还是使用 flask 配置 url_for?
静态文件当然用 nginx
2016-12-15 10:16:37 +08:00
回复了 smallaccount 创建的主题 NGINX nginx 取消 https 后发现 chrome 访问提示重定向过多无法访问。
@raysonx 我觉得你说的最靠谱,主要是 chrome 缓存了 301 的问题,但是怎么清楚客户端 chrome 的 301 缓存呢?
2016-12-15 10:09:11 +08:00
回复了 smallaccount 创建的主题 NGINX nginx 取消 https 后发现 chrome 访问提示重定向过多无法访问。
@flynaj

@loveyu 纯小白,刚才写成 curl -l 了,应该是 curl -I.

http
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Wed, 14 Dec 2016 14:46:53 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 7996
Connection: keep-alive
Cache-Control: no-cache

https
HTTP/1.1 302 Moved Temporarily
Server: nginx/1.4.6 (Ubuntu)
Date: Wed, 14 Dec 2016 14:48:01 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
Location: http://www.domain.com/

重新设置为 302 了,目前依旧无法正常访问。

@lslqtz 方法没用,加了,加在 proxy_set_header X-Real-IP $remote_addr;下面了,还不行。。。

目前设置:
server {
listen 80;
server_name domain.com www.domain.com;
if ($host != 'www.domain.com')
{
rewrite ^/(.*)$ http://www.domain.com/$1 redirect;
}
proxy_cache_valid 301 1m;
location / {
proxy_pass http://127.0.0.1:8000/;
limit_req zone=one burst=20 nodelay;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
add_header Cache-Control no-cache;
}
location /static {
alias /var/www/domain/static;
}
}
server {
listen 443 ssl;
server_name domain.com www.domain.com;
proxy_cache_valid 301 1m;

rewrite ^/(.*)$ http://www.domain.com/$1 redirect;

ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;
}
2016-12-14 22:42:21 +08:00
回复了 smallaccount 创建的主题 NGINX nginx 取消 https 后发现 chrome 访问提示重定向过多无法访问。
@loveyu http 的话直接显示网页内容了, https 的话和上面的那个一样。。。
2016-12-14 22:14:52 +08:00
回复了 smallaccount 创建的主题 NGINX nginx 取消 https 后发现 chrome 访问提示重定向过多无法访问。
@flynaj curl 结果是:
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.4.6 (Ubuntu)</center>
</body>
</html>
2016-12-14 22:00:28 +08:00
回复了 smallaccount 创建的主题 NGINX nginx 取消 https 后发现 chrome 访问提示重定向过多无法访问。
2016-12-14 21:55:16 +08:00
回复了 smallaccount 创建的主题 NGINX nginx 取消 https 后发现 chrome 访问提示重定向过多无法访问。
@lslqtz 不好意思…稍等。
2016-12-14 20:27:19 +08:00
回复了 smallaccount 创建的主题 NGINX nginx 取消 https 后发现 chrome 访问提示重定向过多无法访问。
@raysonx 是这样的,如果清除 cookie ,缓存消失就正常了。但是如何无痛换到 http 呢?用户不会清楚 cookie 。
@stabc 清除 cookie 后正常
@lslqtz 最讨厌的就是『大量答案都提到了』,然后还不给解决办法的回答。
1  2  3  4  5  6  7  8  9  10 ... 13  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   924 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms · UTC 19:03 · PVG 03:03 · LAX 12:03 · JFK 15:03
Developed with CodeLauncher
♥ Do have faith in what you're doing.