Hi Emil, all,

I always include ProxyPassReverse - as you never know if a service
will change in the future - or if some little part of it in fact does
redirects.


Cheers,

Greg


On Thu, May 16, 2013 at 10:48 AM, Emil Tin <[email protected]> wrote:
> Is the ProxyPassReverse needed? Isn't that for handling redirects? OSRM 
> doesn't use redirects I think.
>
>
>
> Med venlig hilsen
>
> Emil Tin
> IT- og Processpecialist
> Trafikdesign
> _______________________________
> KØBENHAVNS KOMMUNE
> Teknik- og Miljøforvaltningen
> Center for Trafik
>
> Islands Brygge 37 Vær. 118
> Postboks 450
> 2300 København S
>
> Mobil
> +45 2369 5986
> Email
> [email protected]
>
>
> -----Oprindelig meddelelse-----
> Fra: Hans Gregers Petersen [mailto:[email protected]]
> Sendt: 16. maj 2013 09:37
> Til: Emil Tin
> Cc: [email protected]
> Emne: Re: [OSRM-talk] Running several OSRM instances?
>
> Hi Emil, all,
>
> We use apache with mod_proxy, and I make a setup prepared to use balancers. 
> Right now we have /car, /bicycle, etc and a default page on the standard "/", 
>  to avoid confusion and ensure that it is nice, explicit and easy in the code 
> to switch between engines. By preparing to use balancers, I could in the 
> future add another server transparently to let several OSRM servers work on 
> say car routing.
>
>         # Proxy to the service behind it all
>         <Proxy balancer://car>
>                 BalancerMember http://127.0.0.1:5000 max=1 retry=5
>
>                 # ... More but ignorable stuff here ...
>         </Proxy>
>
>         # Add the balancer for car
>         ProxyPass /car/ balancer://car/
>         ProxyPassReverse /car balancer://car
>
> Cheers,
>
> Greg
>
>
> On Wed, May 15, 2013 at 7:23 PM, Emil Tin <[email protected]> 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
>> [email protected]
>> http://lists.openstreetmap.org/listinfo/osrm-talk
>
> _______________________________________________
> 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