For some of the most popular BitNami applications (WordPress, Drupal, Joomla! or Magento), we implemented an automatic approach to change the default URL to the root. For example:
You only have to log in the machine where you have your application installed, Virtual Machine or Cloud image and run the following command:
You can follow the same approach for your application. You can find more info at http://wiki.bitnami.com/Applications
The default Apache document root directory is "/installdir/apache2/htdocs" folder. You can change the document root in the "/installdir/apache2/conf/httpd.conf" file to run your application in the root URL.
If you want to change the default URL from "http://example.com/your_application" to "http://example.com", you should modify the "DocumentRoot" and "Directory" lines in the httpd.conf file to point to the application "htdocs" folder. It is also necessary to comment the "Include" option. You should replace it "your_application" with drupal, wordpress, joomla or your own application.
Some applications also require changes in their configuration files or in the database. For instance Wordpress also saves the URL in the database. If you have changed the URL or you are trying to access from a different machine and you can see Wordpress without CSS, you have to modify the domain name or the URL you should run the following command to modify the database:
You can find more information in the Wiki page for each project.