Configure a app in a subpath in nginx

Posted by Rubem Azenha on Server Fault See other posts from Server Fault or by Rubem Azenha
Published on 2010-12-28T21:39:10Z Indexed on 2010/12/28 21:55 UTC
Read the original article Hit count: 163

Filed under:
|
|

I have a nginx + passenger + single rails app setup in a Fedora server. My nginx.conf regarding my app looks something like this:

server {
    listen 80;
    server_name myapp.mycompany.com;
    root /opt/apps/myapp_large_name/public;
    passenger_enabled on;
    client_max_body_size 4M;
}

So when I access myapp.mycompany.com.br it access to my rails app under /opt/apps/myapp_large_name/public. I want to be able to configure a subpath to access to another app (in this case, monit). I want something like that:

myapp.mycompany.com.br/monit access the monit app.

Is it possible?

© Server Fault or respective owner

Related posts about nginx

Related posts about ruby-on-rails