1

Not really sure how to word the title. Say for example I only want my webserver accessible from domains and NOT the IP. How can I set a default page for when it's accessed via the IP directly?

1 Answer 1

3

Add a default server with some index page:

server {
   listen 80 default;
   server_name _;
   root /var/www/default/;
}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .