# How to run multiple application on mongrel using proxy?

**URL:** <https://www.ruby-forum.com/t/how-to-run-multiple-application-on-mongrel-using-proxy/152055>\
**Category:** Deployment\
**Created:** [October 29, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/how-to-run-multiple-application-on-mongrel-using-proxy/152055 "2008-10-29T15:21:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gordons11](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a88e4f/32.png) [@gordons11](https://www.ruby-forum.com/u/gordons11)\
**Post date:** [October 29, 2008, 3:21pm UTC](https://www.ruby-forum.com/t/how-to-run-multiple-application-on-mongrel-using-proxy/152055/1 "2008-10-29T15:21:20Z")

</div>

hey im wondering how can i run multiple application on mongrel using  
proxy. my supervisor wants it so that mongrel does everything for you.  
for example mongrel should know that the relative url is  
[http://domain/myapp](http://domain/myapp) and he could change myapp to myappp2 to anything and  
mongrel will know that automatically to goto [http://domain/myapp2](http://domain/myapp2) or if  
he was to remove the proxy mongrel should know that automatically.

i have no access to edit the proxy but all i know is that it looks  
something like this

ProxyRequests Off  
\<Proxy \*\>  
Order deny,allow  
Allow from all

ProxyPass /myapp/ [http://server:3000/](http://server:3000/)  
\<Location /myapp\>  
ProxyPassReverse [http://server:3000](http://server:3000)

also he is seriously against using the --prefix command on mongrol.  
because you have to match the --prefix name to the proxy and wants that  
to be more dynamic. is this possible?
