Articles of https

Nginxconfiguration第三级域名

我知道如何使用htts为网站创buildnginxconfiguration,以便redirect到https域: server { listen 80 default_server; listen [::]:80 default_server; server_name my_domain.com www.my_domain.com; return 301 https://$server_name$request_uri; } server { listen 443 ssl; listen [::]:443 ssl; server_name localhost www.my_domain.com; return 301 https://my_domain.com$request_uri; } server { listen 443 ssl default_server; listen [::]:443 ssl default_server; server_name my_domain.com; # ……………. 现在我除了已经有的“my_domain.com”之外,还设置了域名“登台”。 也就是说,“staging.my_domain.com”我应该如何更改“staging.my_domain.com”上面的configuration? 我无法弄清楚。 我应该完全删除第一部分,因为不能有www.staging.my_domain.com 如果没有,那么我的configuration应该怎么样?

使用Google Cloud和Cloudlare将HTTPredirect到HTTPS

我在Google Cloud上托pipe一个网站,并且已经myurl.com定制了一个自定义域名myurl.com 当我inputhttps://www.myurl.com或https://myurl.com ,URL在浏览器栏中正确显示。 但是,无论何时通过HTTP( http://myurl.com : http://www.myurl.com )访问网站,浏览器栏都显示通用URL https://something-appspot.com 。 我已经尝试设置Cloudflare并激活选项“始终使用HTTPS”,并单独创build从* .myurl到https://www.myurl.com的redirect规则(301) – 但没有任何工作,我一直得到的appspot URL。 我已经尝试清除caching并使用多个设备来确保问题不在客户端。 我怎么能得到所有的请求,不pipe协议,显示https://www.myurl.com ?

阻止我们为来宾networking上的客户端encryptionvalidation协议

我在与运行Seafile的主Web服务器相同的公共IP后面build立了一个访客networking,它与客户端之间的通信由HTTPS协议使用本地根CA签署的证书进行保护。 如何阻止访客networking上的客户端使用类似Let's Encrypt这样的服务为Web服务器域颁发证书? 我不知道validation过程如何为这些服务工作,但我想你应该首先能够从该地址发送接收数据包。 谢谢!

将NGINX HTTPS域redirect到新的HTTPS域

花了几个小时使用duckduckgo,这是我到达的最好的答案,它仍然无法将当前的HTTPS域redirect到一个新的HTTPS域。 server { listen 80; listen 443 ssl; server_name www.olddomain.com olddomain.com; rewrite 301 https://newdomain.com$request_uri; } 浏览器给出不安全的连接错误。 我也尝试过这样的事情 server { listen 443 ssl; server_name olddomain.com; ssl on; ssl_certificate /etc/ssl/certs/OLD.crt; ssl_certificate_key /etc/ssl/private/OLD.key; #enables all versions of TLS, but not SSLv2 or 3 which are weak and now deprecated. ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers "ALLLLLLTTHHISSSS"; ssl_prefer_server_ciphers on; rewrite […]

在使用301redirect的http和https之间传递引用者的双重行为

我们有一个使用https的客户端,但有两个301redirect,第一个从httpsredirect到http,第二个从http到https。 他的一个引用者正在从https引用者发送到https,但引用者参数不会再发送到http。 另一个引用者正在从http referrer发送到https,好奇地是这个引用者进入第一个http 301redirect,然后进一步到第二个301 httpsredirect。 我必须提到,推荐人网站不使用任何元标签。 当然,我们的客户不能访问任何推荐人网站。 客户端需要在所有情况下通过redirect发送的引用参数,但是这不会发生。 我完全被这种行为所推翻,并想知道是否还有其他人遇到过这种情况,如果有的话,可能会有什么解决scheme/解决scheme。

IISredirect到HTTPS文件夹

我试图找出IIS上的redirect。 我有一个网站,应该在https://foo.bar.com/Web下查看 HTTP到HTTPS的redirect部分很容易,但进入https://foo.bar.com/显示IIS的默认页面,我希望它redirect到https://fo.bar.com/Web 根据我的理解,我需要两条规则。 第一个将HTTPstream量redirect到HTTPS( https://foo.bar.com/Web ),另一个从HTTPS( https://foo.bar.com )到HTTPS / Web( https:// foo .bar.com / Web )。 任何提示将不胜感激。

在IIS 7.5中使用强大的Diffie Hellman组

我想更改我的IIS 7.5安装中使用的DH组。 我知道我可以增加到2048 +的大小, 从微软这个build议 。 但出于兼容性原因(主要是Java 6和7),我想保持在1024位的大小。 我可以使用1024位素数,但我不想使用默认(可能已知和可利用的),但我自己生成的。 我知道如何在其他服务器(Apache和Nginx)中使用它们,但我不知道如何在IIS上执行它。 我能够用openssl生成这些素数(使用openssl dhparam -out dh_1024.pem 1024 ) 禁用Diffle-Hellman密码套件不是一个选项 任何意见表示赞赏。 提前致谢

nginx似乎没有转发资源

我试图代理一个https网站,我希望人们能够像在真实的网站上一样浏览我的代理,我也想修改应得的内容(在将来)。 通过proxy_pass,我可以代理主页面,只要我尝试访问位于真实网站上的资源或发送http post / get data我得到一个404 Not Found错误 /etc/nginx/nginx.conf user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; events { worker_connections 768; # multi_accept on; } http { server_tokens off; ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; # server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/nginx/mime.types; […]

为IIS 7.0问题创build证书

我正在为IIS 7.0configurationhttps,我需要为IIS 7.0服务器创build一个testing证书。 我是新来创buildIIS 7.0的证书,我只需要服务器证书,不需要客户端证书。 我在Windows Vista Enterprise上configurationIIS 7.0。 任何推荐的读物或文件? 在此先感谢乔治

Apache2 https保持redirect(301)到http

尽pipe我已经使用了Apache多年,但我刚接触https和SSL。 为了testing,我已经执行了一些在Internet上find的openssl命令来生成一个自签名证书,供Apache使用。 当我第一次打到https:// mydomain的 URL时,我得到了关于证书的浏览器警告,这是预期的。 接受我的浏览器中的证书后,似乎所有的httpsurl都redirect到与http等同的301。 我无法确定为什么。 任何线索? 我在公共目录的根目录中有一个.htaccess文件,但我不认为它是原因(没有提及https)。 这是Gentoo Linux,Apache 2.2.11。 这是我的Apacheconfiguration的一部分。 大部分是默认情况下Gentoo的Apache安装。 <IfDefine SSL> <IfDefine SSL_DEFAULT_VHOST> <IfModule ssl_module> Listen 443 NameVirtualHost *:443 <VirtualHost *:443> ServerName mydomain.com Include /etc/apache2/vhosts.d/default_vhost.include ErrorLog /var/log/apache2/mydomain.com.ssl.errors CustomLog /var/log/apache2/mydomain.com.ssl.log combined <IfModule log_config_module> TransferLog /var/log/apache2/ssl_access_log </IfModule> SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile /etc/apache2/ssl/mydomain.com.crt SSLCertificateKeyFile /etc/apache2/ssl/mydomain.com.key SSLOptions StrictRequire <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> […]