This is my first question in this community so please forgive any mistakes and break in protocol.
I have a CakePHP application running from my www directory on my LAMP server. I need help on how to move and serve the application from a directory outside the server www directory in the most secure way. Also the the CakePHP application is running on 192.168.0.10 address and this ip is always used to access the app. Now I have registered a domain name e.g myserverapp.com and I want this to be used to access the app. Most importantly I want to disable all access to server application via ip address.
My server runs on Ubuntu 12.04 server.