Hi all,<br>
 I want to run multiple rails applications on passenger+nginx.<br>
I am trying to run two seperate applications, chiliproject and<br>
gitorious(mainline)<br>
I have tried the below steps to setup sub_uri.<br>
<a href="http://www.modrails.com/documentation/Users%20guide%20Nginx.html" target="_blank">http://www.modrails.com/documentation/Users%20guide%20Nginx.html</a><br>
I am not able to run the applications as<br>
<br>
<a href="http://0.0.0.0:3000/mainline" target="_blank">http://0.0.0.0:3000/mainline</a><br>
<br>
how to setup sub_uri to run more than one rails applications.<br>
<br>
<br>
steps to reproduce<br>
<br>
1) my nginx.conf is<br>
<br>
#user  nobody;<br>
worker_processes  1;<br>
<br>
#error_log  logs/error.log;<br>
#error_log  logs/error.log  notice;<br>
#error_log  logs/error.log  info;<br>
<br>
#pid        logs/nginx.pid;<br>
<br>
<br>
events {<br>
    worker_connections  1024;<br>
}<br>
<br>
<br>
http {<br>
    passenger_root /opt/ruby-enterprise-1.8.7-<div id=":8p">2011.03/lib/ruby/gems/<br>
1.8/gems/passenger-3.0.7;<br>
    passenger_ruby /opt/ruby-enterprise-1.8.7-2011.03/bin/ruby;<br>
<br>
    include       mime.types;<br>
    default_type  application/octet-stream;<br>
<br>
    #log_format  main  &#39;$remote_addr - $remote_user [$time_local]<br>
&quot;$request&quot; &#39;<br>
    #                  &#39;$status $body_bytes_sent &quot;$http_referer&quot; &#39;<br>
    #                  &#39;&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;&#39;;<br>
<br>
    #access_log  logs/access.log  main;<br>
<br>
    sendfile        on;<br>
    #tcp_nopush     on;<br>
<br>
    #keepalive_timeout  0;<br>
    keepalive_timeout  65;<br>
<br>
    #gzip  on;<br>
<br>
    server {<br>
        listen       80;<br>
        server_name  localhost;<br>
<br>
        #charset koi8-r;<br>
<br>
        #access_log  logs/host.access.log  main;<br>
<br>
        location / {<br>
            root   /home/chiliproject/chiliproject-2.0.0RC3/public;<br>
            index login;<br>
            passenger_enabled on;<br>
            passenger_base_uri /mainline/public;<br>
<br>
        }<br>
<br>
        #error_page  404              /404.html;<br>
<br>
        # redirect server error pages to the static page /50x.html<br>
        #<br>
        error_page   500 502 503 504  /50x.html;<br>
        location = /50x.html {<br>
            root   html;<br>
        }<br>
<br>
        # proxy the PHP scripts to Apache listening on <a href="http://127.0.0.1/" target="_blank">127.0.0.1:80</a><br>
        #<br>
        #location ~ \.php$ {<br>
        #    proxy_pass   <a href="http://127.0.0.1/" target="_blank">http://127.0.0.1</a>;<br>
        #}<br>
<br>
        # pass the PHP scripts to FastCGI server listening on<br>
<a href="http://127.0.0.1:9000/" target="_blank">127.0.0.1:9000</a><br>
        #<br>
        #location ~ \.php$ {<br>
        #    root           html;<br>
        #    fastcgi_pass   <a href="http://127.0.0.1:9000/" target="_blank">127.0.0.1:9000</a>;<br>
        #    fastcgi_index  index.php;<br>
        #    fastcgi_param  SCRIPT_FILENAME  /scripts<br>
$fastcgi_script_name;<br>
        #    include        fastcgi_params;<br>
        #}<br>
<br>
        # deny access to .htaccess files, if Apache&#39;s document root<br>
        # concurs with nginx&#39;s one<br>
        #<br>
        #location ~ /\.ht {<br>
        #    deny  all;<br>
        #}<br>
    }<br>
<br>
<br>
    # another virtual host using mix of IP-, name-, and port-based<br>
configuration<br>
    #<br>
    #server {<br>
    #    listen       8000;<br>
    #    listen       somename:8080;<br>
    #    server_name  somename  alias  another.alias;<br>
<br>
    #    location / {<br>
    #        root   html;<br>
    #        index  index.html index.htm;<br>
    #    }<br>
    #}<br>
<br>
<br>
    # HTTPS server<br>
    #<br>
    #server {<br>
    #    listen       443;<br>
    #    server_name  localhost;<br>
<br>
    #    ssl                  on;<br>
    #    ssl_certificate      cert.pem;<br>
    #    ssl_certificate_key  cert.key;<br>
<br>
    #    ssl_session_timeout  5m;<br>
<br>
    #    ssl_protocols  SSLv2 SSLv3 TLSv1;<br>
    #    ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:<br>
+SSLv2:+EXP;<br>
    #    ssl_prefer_server_ciphers   on;<br>
<br>
    #    location / {<br>
    #        root   html;<br>
    #        index  index.html index.htm;<br>
    #    }<br>
    #}<br>
<br>
}<br>
<br>
<br>
<br>
2) ln -s /home/chiliproject/mainline/public /home/chiliproject/<br>
chiliproject-2.0.0RC3/mainline<br>
<br>
please help.<br>
Thanks...<br>
<font color="#888888">Nagaraj P G</font></div><br clear="all"><br>-- <br>Nagaraj<br>