Ok, ladies and gentlemen!
I needed local development server closer as possible to the production one. I downloaded and Installed Ubuntu, but didn’t know how to get Apache, MySQL and PHP installed. After a few hours of reading random blogs found on Google and head banging I succeed.
My requirements was:
- Set up multiple subdomains automatically (i.e. Virtual Document Root)
- Password protect all my subdomains when they are accessed outside my home network but access them directly, without need to provide password, when I am connected to my local network and develop.
- To separate the error logs by virtual host (subdomain).
Below is a laundry list of commands to help you configure your own perfect Ubuntu server, too.