Hi,
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:
<VirtualHost _default_:80>
And add your domain name like this
<VirtualHost _default_:80>
ServerName YOURSERVER.com
In addition to this, you need to add the following before this <VirtualHost _default_:80>
line:
<VirtualHost *:80>
<Location />
Order deny,allow
Deny from all
</Location>
</VirtualHost>
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.
Best regards,
Javier J. Salmerón