# Welcome to Nginx message

**URL:** <https://www.ruby-forum.com/t/welcome-to-nginx-message/154143>\
**Category:** NGINX\
**Created:** [November 25, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/welcome-to-nginx-message/154143 "2008-11-25T20:28:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swanilda\_Suarez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@Swanilda\_Suarez](https://www.ruby-forum.com/u/Swanilda_Suarez)\
**Post date:** [November 25, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/welcome-to-nginx-message/154143/1 "2008-11-25T20:28:06Z")

</div>

I have installed nginx, but I was wondering what do I need to do in  
order to  
be able to type the ip address and instead of getting the welcome  
screen,  
have my webpage come up.  
In other words every time I type xx.xx.xx.xx I get “Welcome to Nginx”  
but I  
want to go to my url now. It works fine if I type the domain name but  
not  
the ip

---

<div class="post-metadata">

**Author:** ![Swanilda\_Suarez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@Swanilda\_Suarez](https://www.ruby-forum.com/u/Swanilda_Suarez)\
**Post date:** [November 25, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/welcome-to-nginx-message/154143/2 "2008-11-25T21:47:53Z")

</div>

If you only have the one domain, a simple way would be to delete or  
rename  
the nginx/html directory and then create a symbolic link to nginx/html  
from  
your doc root.

# mv /path/to/nginx/html /path/to/nginx/html.bak

# ln -s /path/to/doc/root /path/to/nginx/html

From: removed\_email\_address@domain.invalid [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of  
Swanilda Suarez  
Sent: Tuesday, November 25, 2008 2:17 PM  
To: removed\_email\_address@domain.invalid  
Subject: Welcome to Nginx message

I have installed nginx, but I was wondering what do I need to do in  
order to  
be able to type the ip address and instead of getting the welcome  
screen,  
have my webpage come up.  
In other words every time I type xx.xx.xx.xx I get “Welcome to Nginx”  
but I  
want to go to my url now. It works fine if I type the domain name but  
not  
the ip

---

<div class="post-metadata">

**Author:** ![Swanilda\_Suarez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@Swanilda\_Suarez](https://www.ruby-forum.com/u/Swanilda_Suarez)\
**Post date:** [November 25, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/welcome-to-nginx-message/154143/3 "2008-11-25T22:35:44Z")

</div>

Pardon my ignorance but would this work if Nginx is residing on a  
different  
machine than the web-servers. I am using it as a proxy for two Windows  
web-servers.  
My impression is that this will only work if Nginx is residing on the  
same  
machine as the webservers, but I could be obviously wrong.  
Thanks

---

<div class="post-metadata">

**Author:** ![Swanilda\_Suarez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@Swanilda\_Suarez](https://www.ruby-forum.com/u/Swanilda_Suarez)\
**Post date:** [November 25, 2008, 10:46pm UTC](https://www.ruby-forum.com/t/welcome-to-nginx-message/154143/4 "2008-11-25T22:46:19Z")

</div>

On Tue, Nov 25, 2008 at 12:17:14PM -0700, Swanilda Suarez wrote:

> I have installed nginx, but I was wondering what do I need to do in order to  
> be able to type the ip address and instead of getting the welcome screen,  
> have my webpage come up.  
> In other words every time I type xx.xx.xx.xx I get “Welcome to Nginx” but I  
> want to go to my url now. It works fine if I type the domain name but not  
> the ip

make the desired vhost ‘default’, you can either user "server\_name \_; "  
or  
“listen x.x.x.x:80 default;”

---

<div class="post-metadata">

**Author:** ![Swanilda\_Suarez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@Swanilda\_Suarez](https://www.ruby-forum.com/u/Swanilda_Suarez)\
**Post date:** [December 1, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/welcome-to-nginx-message/154143/5 "2008-12-01T13:47:57Z")

</div>

On Tue, Nov 25, 2008 at 10:38:13PM +0100, Almir K. wrote:

> On Tue, Nov 25, 2008 at 12:17:14PM -0700, Swanilda Suarez wrote:
> 
> > I have installed nginx, but I was wondering what do I need to do in order to  
> > be able to type the ip address and instead of getting the welcome screen,  
> > have my webpage come up.  
> > In other words every time I type xx.xx.xx.xx I get “Welcome to Nginx” but I  
> > want to go to my url now. It works fine if I type the domain name but not  
> > the ip
> 
> make the desired vhost ‘default’, you can either user "server\_name \_; " or  
> “listen x.x.x.x:80 default;”

No, “server\_name \_” does not make a server as default. This is simply  
nonexistent name that can not interfere with other names.

Only “listen default” does the default server for given IP:port.

---

<div class="post-metadata">

**Author:** ![Swanilda\_Suarez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@Swanilda\_Suarez](https://www.ruby-forum.com/u/Swanilda_Suarez)\
**Post date:** [April 17, 2011, 2:24am UTC](https://www.ruby-forum.com/t/welcome-to-nginx-message/154143/6 "2011-04-17T02:24:53Z")

</div>

removed\_email\_address@domain.invalid
