The server being malicious parsing
The server being malicious parsing
Server is independent IP, after the installation of vesta, can direct access to the site via IP, no binding function of host? How to prohibit the IP access directly?
To prevent the server parsed by others
To prevent the server parsed by others
Re: The server being malicious parsing
You can do it via nginxsuperen wrote:Server is independent IP, after the installation of vesta, can direct access to the site via IP, no binding function of host? How to prohibit the IP access directly?
To prevent the server parsed by others
there is pretty simple solution - /etc/nginx/conf.d/your-ip.conf
Code: Select all
server {
listen your-ip:80 default;
server_name _;
location / {
access_log /dev/null;
error_log /dev/null;
return 444;
}
location /phpmyadmin/ {
proxy_pass http://your-ip:8080;
}
location /webmail/ {
proxy_pass http://your-ip:8080;
}
}