Q
Q
QQ2015-11-09 15:12:19
Nginx
QQ, 2015-11-09 15:12:19

How to make a stub when entering the IP?

Hello.
I want it to show a blank page when entering the IP, and when entering the domain - the corresponding site.
So to speak, to hide that a certain IP belongs to the site.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nirvimel, 2015-11-09
@botaniQQQ

# ip access
    server {
        listen       80  default_server;
        server_name  _;
        return       404;
    }

# domain access
    server {
        listen 80;
        server_name  localhost;
        location / {
            root /home/user/site/root;
        }
   }

A
Artem, 2015-11-09
@ulkoart

configure your web server. example with nginx , write down the default, so that the "stub" would pop up.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question