https

Nginx redirect (non-www to www) not working with Certbot

▼魔方 西西 提交于 2020-01-05 06:07:30
问题 I have a website running with a Python/Django/uWSGI/Nginx setup. I also use Certbot to enable https on my site. My redirects from non-www to www (e.g. "example.com" to "www.example.com") result in a "Bad Request (400)" message even though I couldn't spot any deviations from the Nginx/Certbot documentation. Here is the relevant part of my sites-available Nginx code: server { listen 80; server_name example.com www.example.com; location = /favicon.ico { access_log off; log_not_found off; }

How to get letsencrypt to work on Openshift site

岁酱吖の 提交于 2020-01-05 05:27:09
问题 I hope someone can help me get my site set up with HTTPS correctly on Openshift. Here's the steps I took: I have an Openshift site let's call it - myOSsite-myname.rhcloud.com I have a domain name through GoDaddy -- mydomain.com. I've set my domain on GoDaddy to forward to Openshift so now: www.mydomain.com --> myOSsite-myname.rhcloud.com I set up two aliases on Openshift -- mydomain.com & www.mydomain.com I went through some letsencrypt tutorials to manually generate a certificate. So now the

TCPDF cache problems when using https

巧了我就是萌 提交于 2020-01-05 04:22:05
问题 We have been using TCPDF to create PDFs on the fly for a while now and everything has been working fine. However, we changed to https today using the following htaccess code: RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.berau.at/$1 [R,L] Now we are getting the following TCPDF error: TCPDF ERROR: [Image] Unable to get image: /home/.sites/64/site1783/web/pdf2/cache/img_UgqqR0 If we remove the htaccess redirect for https, everything works fine again. We've searched the TCPDF

How to get most popular Facebook post in R

给你一囗甜甜゛ 提交于 2020-01-05 04:08:15
问题 I am trying to use the following code to get posts from a page on Facebook. I get an error even though the query works when I type it in a browser. This is the error I get: WWW-Authenticate: OAuth "Facebook Platform" "invalid_request" "Unknown path components: Any thoughts are greatly appreciated! # go to 'https://developers.facebook.com/tools/explorer' to get your access token access_token <- "### token ###" require(RCurl) require(rjson) cafile <- system.file("CurlSSL", "cacert.pem", package

PHP - https stream through http proxy

故事扮演 提交于 2020-01-05 04:03:30
问题 I'm trying to get the content of a stream over HTTPS, but I have to go over an HTTP proxy. I'd like not to use cURL but rather use fopen with a context argument. The thing is, I can't make it work over HTTPS (HTTP is working fine though). This DOES NOT work : $stream = stream_context_create(Array("http" => Array("method" => "GET", "timeout" => 20, "proxy" => "tcp://my-proxy:3128", 'request_fulluri' => True ))); echo file_get_contents('https://my-stream', false, $context); This DOES work (cURL

PHP - https stream through http proxy

偶尔善良 提交于 2020-01-05 04:03:07
问题 I'm trying to get the content of a stream over HTTPS, but I have to go over an HTTP proxy. I'd like not to use cURL but rather use fopen with a context argument. The thing is, I can't make it work over HTTPS (HTTP is working fine though). This DOES NOT work : $stream = stream_context_create(Array("http" => Array("method" => "GET", "timeout" => 20, "proxy" => "tcp://my-proxy:3128", 'request_fulluri' => True ))); echo file_get_contents('https://my-stream', false, $context); This DOES work (cURL

ERR_SSL_PROTOCOL_ERROR with Heroku, Node, Express, SSL

北城余情 提交于 2020-01-04 22:25:30
问题 I recently enabled SSL for my Heroku-hosted website, wildcodemonkey.com, but when I visit it in Chrome I see the error "ERR_SSL_PROTOCOL_ERROR". My research indicated that the SSL connection terminates at Heroku's router, which then passes the request along via HTTP to my express/node site. Consequently, I did not set up 'https' in my server and have been expecting standard HTTP connections. My SSL configuration is such that my CSR, key and cert were passed along to Heroku. I'm using the SSL

android webview crash 4.3

一曲冷凌霜 提交于 2020-01-04 15:31:36
问题 i got a problem with my payement webview in android since the 4.3 release. I guess is due to the SSL certificate redirection but i can't change it. I tried the url on samsung or sony < 4.2 with success but on two different 4.3 nexus i got this dump. 08-08 17:22:38.619: E/AndroidRuntime(7568): FATAL EXCEPTION: WebViewCoreThread 08-08 17:22:38.619: E/AndroidRuntime(7568): java.lang.StringIndexOutOfBoundsException: length=0; index=-1 08-08 17:22:38.619: E/AndroidRuntime(7568): at java.lang

android webview crash 4.3

岁酱吖の 提交于 2020-01-04 15:30:13
问题 i got a problem with my payement webview in android since the 4.3 release. I guess is due to the SSL certificate redirection but i can't change it. I tried the url on samsung or sony < 4.2 with success but on two different 4.3 nexus i got this dump. 08-08 17:22:38.619: E/AndroidRuntime(7568): FATAL EXCEPTION: WebViewCoreThread 08-08 17:22:38.619: E/AndroidRuntime(7568): java.lang.StringIndexOutOfBoundsException: length=0; index=-1 08-08 17:22:38.619: E/AndroidRuntime(7568): at java.lang

How to call https url in uiwebview (swift)?

纵饮孤独 提交于 2020-01-04 14:22:50
问题 I have https url with self-sign certication in UIWEBView ,but it does not work. Error is NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)... how can I to allow any certication in uiwebview by swift Do you have any idea that fix this problem? 回答1: i find a way to do this,but i think this is not a good way. step 1------use NSURLConnection in override func viewDidLoad(){} section request = NSURLRequest(URL:url) let urlConnection:NSURLConnection = NSURLConnection