# How to disable auto redirect to visual host?

**URL:** <https://www.ruby-forum.com/t/how-to-disable-auto-redirect-to-visual-host/220948>\
**Category:** NGINX\
**Created:** [June 26, 2012, 8:47am UTC](https://www.ruby-forum.com/t/how-to-disable-auto-redirect-to-visual-host/220948 "2012-06-26T08:47:45Z")\
**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:** [June 26, 2012, 8:47am UTC](https://www.ruby-forum.com/t/how-to-disable-auto-redirect-to-visual-host/220948/1 "2012-06-26T08:47:45Z")

</div>

server {  
server\_name [www.clickzeed.com](http://www.clickzeed.com);  
listen 80;  
server\_name\_in\_redirect off;  
root /home/wwwroot/clickzeed;  
}

but i not set anything about [www.test.com](http://www.test.com)

when i access [www.test.com](http://www.test.com) in visual host it auto redirect to t  
/home/wwwroot/clickzeed ?

and how ro config to access ip different doc root not auto ?

- [www.test.com](http://www.test.com) it test domain

Posted at Nginx Forum:

> **[How to disable auto redirect to visual host?](https://forum.nginx.org/read.php?2,227906,227906#msg-227906)**
>
> server { server\_name www.clickzeed.com; listen 80; server\_name\_in\_redirect off; root /home/wwwroot/clickzeed; } but i not set anything about www.test.com when i access www.test.com in visual host it auto redirect to t /home/www
