Thanks! I tried the following setup, which seems to work fine:

ProxyPass /cargobike/ http://127.0.0.1:5001
ProxyPass / http://127.0.0.1:5000


OSRM intances then listens on port 127.0.0.1, port 5000/5001.

At first I thougt I could leave the normal instance running on port 80, but 
Apache and OSRM can't both listen on port 80.


Of course it would be easier if OSRM supported several profiles out of the box. 
It might also save space, since things like names and nearest neighbor grid 
could be shared.




On May 15, 2013, at 19:45 , Jens Thiele <[email protected]> wrote:

> Emil Tin <[email protected]> writes:
> 
>> 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
> 
> i will do this in my wrapper
> 
> PS: emil: sorry for the duplicate
> 
> 
> _______________________________________________
> OSRM-talk mailing list
> [email protected]
> http://lists.openstreetmap.org/listinfo/osrm-talk


_______________________________________________
OSRM-talk mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osrm-talk

Reply via email to