PostgreSQL coub express.js freeware git jquery laravel links linux macos mysql node.js php powershell python ubuntu vim virtualbox анекдот блог игры интересно стихи цитаты

Nginx: how to set default server
August 01, 2016
Sometimes it's conveniently to set up default server, that gonna try to serve request by default. Originally, if your server got a request by IP address (for example) and can't get any requested hostname, it takes first server description from your config and tries to serve request with this server.
You can change this behavior. It's really easy. Just use default_server parameter, like this.
server {
    listen      80 default_server;
    server_name example.net www.example.net;
    ...
}

Comments

No comments here yet.
You have to login to post a new comment.
aghr