hy everybody <br>I try to create a virtual host (server block) on nginx, and i have two issue.<br><br>When i m going to<b> <a href="http://localhost" target="_blank">http://localhost</a></b> ,i see my website <br>But when i try to go to the virtual host (server block) <b><a href="http://localhost/websvn" target="_blank">http://localhost/websvn</a></b><br>

I get an error because he try to find a webpage  with the name <b>websvn</b> on my first website.<br>I don't understand why ??<br><br><b>/conf/nginx.conf</b><br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">

http {<br>     include       mime.types;<br>    passenger_root /usr/local/centOs/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11;  # it's for Ruby on Rails <br>    passenger_ruby /usr/local/centOs/rvm/bin/ruby-1.9.3-p125;                                        # it's for Ruby on Rails <br>

   
 passenger_max_pool_size 10;                                            
                                     # it's for Ruby on Rails <br><br>    default_type  application/octet-stream;<br><br>    sendfile        on;<br>## TCP options <br>    tcp_nopush     on;<br>    tcp_nodelay    on;<br>

## Timeout<br>    keepalive_timeout  65;<br><br>    types_hash_max_size 2048;<br>    server_names_hash_bucket_size 128;<br>    proxy_cache_path /mnt/donner/nginx/cache levels=1:2 keys_zone=one:10m;<br>    gzip  on;<br>    server_tokens off;<br>

<br># =======add server block ====== ##<br><br>     include /usr/local/centOs/nginx/vhosts-available/*;<br>     include /usr/local/centOs/nginx/vhosts-available/*.conf;<br><br><br> server {<br>        listen       80;<br>

        #server_name localhost;<br>        passenger_enabled on;<br>        passenger_use_global_queue on;<br><br>        error_log   /home/logs/nginx/error.log;<br>        access_log  /home/logs/nginx/access-global.log;<br>

</blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">      }     </blockquote><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">

 }<br clear="all"></blockquote><div> <br><b>/vhost-enable/srv-websvn.conf</b><br><br></div><br>server {<br>
<br>            listen   80;<br>            server_name  srv-websvn;<br>           # rewrite ^/(.*) <a href="http://localhost/$1" target="_blank">http://localhost/$1</a> permanent;<br><br>            error_log  /home/logs/websvn/error.log;<br>

            access_log /home/logs/websvn/access.log;<br>           }<br><br>server {<br><br>            listen   80;<br>            server_name  srv-websvn;<br><br>            error_log  /home/logs/websvn/error.log;<br>            access_log /home/logs/websvn/access.log;<br>

 location / {<br><br>                  root   /home/sites_web/websvn/;<br>                  index  index.html;<br>                  #try_files $uri $uri/ /index.html;<br><br>             }<br>           }