[OSRM-talk] Running several OSRM instances?

Michal Palenik michal.palenik at freemap.sk
Thu May 16 00:18:07 UTC 2013


I use a standard reverse proxy (from apache)                                                                                         
I create a virtual host, dns based, with config                                                                                      
something like:                                                                                                                      
ProxyPass / http://10.9.0.10:5000/                                                                                           
        ProxyPassReverse / http://10.9.0.10:5000/     

(which actually runs from my home desktop via openvpn, it's still quite                                                              
fast)

michal
On Wed, May 15, 2013 at 07:23:22PM +0200, Emil Tin wrote:
> We would like to offer different bicycle profiles (including cargo bikes) on our site http://www.ibikecph.dk, and in our mobile app. 
> 
> OSRM can't yet serve different profiles from the same instance. A workaround is to run mulitple instances. Does anyone have experience with running several OSRM instances on the same server?
> 
> 
> It imagine it would be nice to map paths or params to ports, perhaps using apache rewrite_mod. Example:
> 
> http://routes.ibikecph.dk/viaroute?.......						# => map to port 5000, OSRM instance serving normal bike routes
> http://routes.ibikecph.dk/viaroute?.......&profile=cargobike 		# => map to port 5001, OSRM instance serving routes for cargo bikes
> 
> 
> 
> Thanks,
> 
> Emi Tin
> City of Copenhagen
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osrm-talk

-- 
michal palenik
www.freemap.sk
www.oma.sk
http://wiki.freemap.sk



More information about the OSRM-talk mailing list