I
I
iamdivine2018-12-05 17:57:37
Apache HTTP Server
iamdivine, 2018-12-05 17:57:37

How can I disable access to the site by IP?

Good evening, there is a website on VDS and a domain is linked to it.
But I do not want to get to the site when they go to the server IP.
How can this be fixed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CityCat4, 2018-12-05
@CityCat4

Make a default config that leads to the page "You are lost" :)

S
Stalker_RED, 2018-12-05
@Stalker_RED

Remove listen *:80, only listen to the correct severName.
Examples: https://httpd.apache.org/docs/2.4/vhosts/examples.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question