Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Jul 14, 2012 5:06 am 
Offline
Senior Member

Joined: Fri Aug 20, 2010 3:12 am
Posts: 68
hi

my linode runs few websites using nqinx. If I use ip address in a browser nginx displays one of the sites. I think it's the last one I set up.

How can I make it so nothing is displayed?

Thank you

R.

Conf file for the site that is displayed if ip is used.

Code:
server {
    listen   80;
    server_name yota.rsness.com;
    access_log /srv/www/wordpress/zxc.zxcv.com/logs/access.log;
    error_log /srv/www/wordpress/zxc.zxcv.com/logs/error.log;

    location / {
        root   /srv/www/wordpress/zxc.zxcv.com/public_html;
        try_files $uri $uri/ /index.php?q=$uri&$args;
        index  index.html index.htm index.php;
    }

    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param  SCRIPT_FILENAME  /srv/www/wordpress/zxc.zxcv.com/public_html$fastcgi_script_name;
    }
}


Top
   
PostPosted: Sat Jul 14, 2012 6:50 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Set one of the server{} blocks -- perhaps one that's just a "Move along, nothing to see here" page -- as the default.

listen 80 default_server;

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Sat Jul 14, 2012 8:12 am 
Offline
Senior Member

Joined: Fri Aug 20, 2010 3:12 am
Posts: 68
hoopycat wrote:
Set one of the server{} blocks -- perhaps one that's just a "Move along, nothing to see here" page -- as the default.

listen 80 default_server;


I had the default option in the server{} block of the web that was displayed when using ip. So I removed it hopping it would fix it.

Your suggestion works. Thank you.

R.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group