Page 1 of 1
The server being malicious parsing
Posted: Sun May 22, 2016 10:48 am
by superen
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
Re: The server being malicious parsing
Posted: Mon May 23, 2016 6:56 am
by skurudo
superen 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
You can do it via nginx
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;
}
}
We discussed this not long time ago there -
http://forum.vestacp.com/viewtopic.php? ... 217#p44251