Page 1 of 1
Preventing random website calls when entering the IP address in the browser
Posted: Wed Jan 24, 2024 11:47 pm
by Meister
Hello,
Question: How can I prevent one of the websites from being called up at random when I enter
https://IP-Adress in my browser? Is it possible to specify somewhere which website is called up?
Kind regards
Re: Preventing random website calls when entering the IP address in the browser
Posted: Sun Feb 04, 2024 4:11 am
by bagimuvi
Meister wrote: ↑Wed Jan 24, 2024 11:47 pm
Hello,
Question: How can I prevent one of the websites from being called up at random when I enter
https://IP-Adressdownload lagu in my browser? Is it possible to specify somewhere which website is called up?
Kind regards
I think it's about
base directory? maybe you need to change your base directory when you adding new domain on your server.
Re: Preventing random website calls when entering the IP address in the browser
Posted: Tue Feb 06, 2024 5:45 pm
by Meister
No, that's not it. It's clearly a bug that I reported years ago but still hasn't been fixed. I have now solved it like this:
in directory /etc/apache2/conf.d/IPAddress.conf the following content:
Listen IPAddress:8080
Listen IPAddress:8443
<VirtualHost IPAddress:8080>
ServerName IPAddress
DocumentRoot /var/www/html/
Alias /error/ /var/www/document_errors/
<Directory "/var/www/html/">
Deny from all
</Directory>
</VirtualHost>
<VirtualHost IPAddress:8443>
ServerName IPAddress
DocumentRoot /var/www/html/
Alias /error/ /var/www/document_errors/
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/vesta/ssl/certificate.crt
SSLCertificateKeyFile /usr/local/vesta/ssl/certificate.key
<Directory "/var/www/html/">
Deny from all
</Directory>
</VirtualHost>