In order to restrict access to your lamp installation if they are using the IP address, you would have to edit
/opt/bitnami/apache2/conf/bitnami/bitnami.conf. Look for the following lines:
And add your domain name like this
In addition to this, you need to add the following before this
<VirtualHost _default_:80> line:
Deny from all
Save the file. Then restart Apache:
sudo /opt/bitnami/ctlscript.sh restart apache
If you want to do the same with HTTPS, do the same process with the
<VirtualHost _default_:443> line.
Hope it helps.
Javier J. Salmerón