NGinX - Deny Visit over my IP

Discussion in 'Server Operation' started by uniQueX, Oct 22, 2014.

  1. uniQueX

    uniQueX New Member

    Hello Guys,

    i have two IP's on my Dedicated Server
    1x eth0
    1x eth0:0

    My Webserver is NGinX

    I want that you can visit my Website only over the domain. I would like to block (deny) the visit over IP.

    My Homepage ran six months on one IP. Yesterday I bought an additional ip and configured it to eth0:0. If you call the new IP, you end up on my homepage, and I will stop it. The new IP should not shown on my homepage.
    I hope you understand.

    thanks a lot.
  2. uniQueX

    uniQueX New Member

    server {
    listen 80 default_server;
    listen 443 default_server ssl;
    server_name _;
    return 444;
    this does not work

    has been resolved
    Last edited: Oct 24, 2014

Share This Page