Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

The server being malicious parsing

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
superen
Posts: 1
Joined: Sun May 22, 2016 10:34 am

The server being malicious parsing
  • Quote

Post by superen » Sun May 22, 2016 10:48 am

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: The server being malicious parsing
  • Quote

Post by skurudo » Mon May 23, 2016 6:56 am

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
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password