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

IP is opening a virtual host on my VestaCP

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
nehafarzana80
Posts: 2
Joined: Sun Jan 05, 2014 6:12 pm

IP is opening a virtual host on my VestaCP
  • Quote

Post by nehafarzana80 » Wed Jan 29, 2014 6:27 pm

I have just installed VestaCP on my another VPS (my 2nd installation). But, somehow my website is opening when I am entering the VPS IP on my browser (i.e; http://xx.xx.xx.xx is opening http://mydomain.com I didn't have such problem on my other installation. How can I fix this issue?
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: IP is opening a virtual host on my VestaCP
  • Quote

Post by imperio » Wed Jan 29, 2014 8:42 pm

This is normal

For ip server apache open on the first domain in the config
You can do any other default domain and then this domain will be available by ip
or you can do a redirect in the htaccess file of your site

Code: Select all

RewriteEngine On

RewriteCond %{HTTP_HOST} ^111\.111\.111\.11$
RewriteRule ^(.*)$ http://yoursite.ru/$1 [R=301,L]
111\.111\.111\.11 - your server ip
yoursite.ru - your site
Top

grisales
Posts: 4
Joined: Mon Jan 12, 2015 7:44 pm

Re: IP is opening a virtual host on my VestaCP
  • Quote

Post by grisales » Mon Jan 12, 2015 8:18 pm

Is it possible to designate as the default one domain that has been created on one sub-account (not admin account) or is it mandatory to host that domain on the admin account?
I know this can be done via Apache but don't know "if" Vesta has any routines that might overwrite this.
Top


Post Reply
  • Print view

3 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