We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Default website for IP
-
- Posts: 3
- Joined: Fri Apr 29, 2016 6:01 am
Default website for IP
Hi There,
If I access my vesta external IP , it redirects me to the first created website ?
is there any way to set a default site / just 404 page / handle the redirection ?
I have been searching all the forum and couldnt get anything
Kind Regards,
If I access my vesta external IP , it redirects me to the first created website ?
is there any way to set a default site / just 404 page / handle the redirection ?
I have been searching all the forum and couldnt get anything
Kind Regards,
Re: Default website for IP
The default site has to be the first VirtualHost.
So I do the following:
I add in file: /etc/httpd/conf.d/xxx.xxx.xxx.xxx.conf (your ip address)
Then I add in file: /etc/nginx/conf.d/xxx.xxx.xxx.xxx.conf
Then i do server restart:
So I do the following:
I add in file: /etc/httpd/conf.d/xxx.xxx.xxx.xxx.conf (your ip address)
Code: Select all
<VirtualHost xxx.xxx.xxx.xxx:8080>
ServerName localhost
DocumentRoot /home/admin/web/default.domain.com/public_html
</VirtualHost>
Code: Select all
server {
listen xxx.xxx.xxx.xxx:80 default;
server_name _;
#access_log /var/log/nginx/xxx.xxx.xxx.xxx.log main;
location / {
proxy_pass http://xxx.xxx.xxx.xxx:8080;
}
}
Code: Select all
service httpd restart
service nginx restart
Re: Default website for IP
syeef is right, this will work.
Another solution is to change the order in /etc/apache2/conf.d/vesta.conf, the first one in top will be displayed as default. So you can there just move your default-site from admin to top.
Another solution is to change the order in /etc/apache2/conf.d/vesta.conf, the first one in top will be displayed as default. So you can there just move your default-site from admin to top.
Re: Default website for IP
I think this issue is big trouble and security issue. After several mounth of using VestaCP I found that all my new registered domains is not linked to default site. But the domains linked for firs site from VestaCP. As a result all this domains indexed by google and many people viewed pages with absurd content.
VestaCP needs to make right order by default in files /etc/apache2/conf.d/vesta.conf and /etc/nginx/conf.d/vesta.conf
I think many users don't know about this bug and still use VestaCP as if all is well.
VestaCP needs to make right order by default in files /etc/apache2/conf.d/vesta.conf and /etc/nginx/conf.d/vesta.conf
I think many users don't know about this bug and still use VestaCP as if all is well.
Re: Default website for IP
think this issue has nothing to do with security. Just had this once on one of my servers, then I changed the order in the config file and the issue was resolved.vazellin wrote: ↑Tue Aug 14, 2018 9:53 amI think this issue is big trouble and security issue. After several mounth of using VestaCP I found that all my new registered domains is not linked to default site. But the domains linked for firs site from VestaCP. As a result all this domains indexed by google and many people viewed pages with absurd content.
VestaCP needs to make right order by default in files /etc/apache2/conf.d/vesta.conf and /etc/nginx/conf.d/vesta.conf
I think many users don't know about this bug and still use VestaCP as if all is well.
Re: Default website for IP
I agree with vazellin that this is a problem that should be addressed by VestaCP. The other panels I have used haven't done this by default. I have pages indexed by Google that shouldn't be indexed which are duplication because subdomains like ftp., etc, are appearing as the default account. This is an SEO no-no.
Can anyone explain what the code from the poster above does?
Can anyone explain what the code from the poster above does?
-
- Posts: 1
- Joined: Thu Jun 04, 2020 7:19 pm
- Os: Debian 8x
- Web: apache
Re: Default website for IP
old subject, but maybe my answer will help somebody.
soluce found : make a symbolic link in /etc/apache2/conf.d# named to be load before XXX.XXX.XXX.XXX.conf (server ip)
soluce found : make a symbolic link in /etc/apache2/conf.d# named to be load before XXX.XXX.XXX.XXX.conf (server ip)
Code: Select all
root@dev:/etc/apache2/conf.d# ln -s /home/admin/conf/web/MY_DEFAUT_DOMAIN.apache2.conf 000-default.conf