I have set up OSRM (Open source routing machine) with nginx. It works as it was supposed to. But, the problem is I can't make it work over ssl. I have set the ports 443, the site over nginx works with https, everything is fine, just the OSRM service or how do I call it, which is running on ubuntu machine, it does not work. The page when I access /location says:
400 Bad Request
The plain HTTP request was sent to HTTPS port
Here is my osrm.config file:
upstream osrm {
# commented out server 0.0.0.0:5000;
server 0.0.0.0:443;
}
server {
listen 443;
ssl on;
ssl_certificate /my/valid/path/working;
ssl_certificate_key /my/valid/path/working;
server_name my_server_sub_domain_is_here;
location /mypath {
proxy_pass http://osrm/;
proxy_set_header Host $http_host;
}
}