IP is opening a virtual host on my VestaCP
-
- Posts: 2
- Joined: Sun Jan 05, 2014 6:12 pm
IP is opening a virtual host on my VestaCP
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?
Re: IP is opening a virtual host on my VestaCP
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
111\.111\.111\.11 - your server ip
yoursite.ru - your site
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]
yoursite.ru - your site
Re: IP is opening a virtual host on my VestaCP
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.
I know this can be done via Apache but don't know "if" Vesta has any routines that might overwrite this.