Preventing random website calls when entering the IP address in the browser

Post Reply
User avatar
Meister
Posts: 44
Joined: Mon Nov 08, 2021 10:04 am

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
User avatar
bagimuvi
Posts: 1
Joined: Sun Feb 04, 2024 4:03 am

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.
User avatar
Meister
Posts: 44
Joined: Mon Nov 08, 2021 10:04 am

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>
Post Reply