Dealing with nginx 400 “The plain HTTP request was sent to HTTPS port” error

后端 未结 8 967
不思量自难忘°
不思量自难忘° 2020-11-28 02:04

I\'m running a Sinatra app behind passenger/nginx. I\'m trying to get it to respond to both http and https calls. The problem is, when both are defined in the server block h

8条回答
  •  感情败类
    2020-11-28 02:56

    Actually you can do this with:

    ssl off; 
    

    This solved my problem in using nginxvhosts; now I am able to use both SSL and plain HTTP. Works even with combined ports.

提交回复
热议问题