# I have a issue with a server block (virtual host)

**URL:** <https://www.ruby-forum.com/t/i-have-a-issue-with-a-server-block-virtual-host/224338>\
**Category:** NGINX\
**Created:** [November 7, 2012, 10:45pm UTC](https://www.ruby-forum.com/t/i-have-a-issue-with-a-server-block-virtual-host/224338 "2012-11-07T22:45:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [November 7, 2012, 10:45pm UTC](https://www.ruby-forum.com/t/i-have-a-issue-with-a-server-block-virtual-host/224338/1 "2012-11-07T22:45:31Z")

</div>

hy everybody  
I try to create a virtual host (server block) on nginx, and i have two  
issue.

When i m going to\* [http://localhost](http://localhost)\* ,i see my website  
But when i try to go to the virtual host (server block) \*  
[http://localhost/websvn](http://localhost/websvn)\*  
I get an error because he try to find a webpage with the name _websvn_  
on  
my first website.  
I don’t understand why ??

_/conf/nginx.conf_

http {

> ```
> default_type application/octet-stream;
> proxy_cache_path /mnt/donner/nginx/cache levels=1:2 keys_zone=one:10m;
> listen 80;
> #server_name localhost;
> passenger_enabled on;
> passenger_use_global_queue on;
> 
> error_log /home/logs/nginx/error.log;
> access_log /home/logs/nginx/access-global.log;
> 
> ```

```
  }

```

}

> 

_/vhost-enable/srv-websvn.conf_

server {

> ```
> }
> }
> 
> ```

–  
Cordialement

Olivier M.  
tel : 06.62.25.03.77
