Hello, I have setup Ubuntu 10, Apache 2 and PHP5 setup on a server. I intend to run a single PHP application on it. I would like all domains pointing to this server to point to my application's web root. How can I set this up? I have set Document Root in /etc/apache2/sites-available/default to my application. I pointed my first domain about two weeks ago and it worked. But now no other domains are pointing to my application. It goes to a page that says "It Works!". I know this can be done because I have seen it working on a CentOS system. No server configuration was necessary for new sites. All sites simply pointed to the same directory. Please help, how can point all incoming requests to the same directory?
For our installation requires an Internet connection. Installation at the start of Apache, PHP, MySQL and the last is PHPMyAdmin. after completion of installation, directly in the run Apache2 by default by ubuntu. To test if apache is already running, please open http://localhost If the display that appears is the inscription "It's Work" then the installation was successful.
@Ikraj: Where do I apply the Server Alias directive? The apach2.conf file or the default file? Please give me an example. I am programmer, I have zero experience in server management.