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

Apache + nginx how can i configure restrictions by domain

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
nematzu
Posts: 1
Joined: Mon Apr 06, 2015 11:07 pm

Apache + nginx how can i configure restrictions by domain
  • Quote

Post by nematzu » Mon Apr 06, 2015 11:16 pm

Hello.

Im new to VestaCP, and im loving it.

But i havin an issue, how can I make my webserver responds only to the domains registered in Vesta (Web tab) ?

Any domain that is targeted to the IP of my vesta server is opening my main website, i would like to restrict the webserver just the domains that I have registered.

thanks.
Top

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

Re: Apache + nginx how can i configure restrictions by domai
  • Quote

Post by skurudo » Tue Apr 07, 2015 11:23 am

It's link bombing or You can use default.domain for it or reject on first place:

Something like this:

Code: Select all

server {
    return 404;
}

server {
    server_name domain_1;
    [...]
}

server {
    server_name domain_2;
    [...]
}
etc..
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