|
Currently my BitNami application is running at http://example.com/wordpress. How can I configure my application to run in the root URL http://example.com ? |
|
Automatic approach 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: http://mydomain.com/wordpress -> http://mydomamin.com 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 Manual approach 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. httpd.conf
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. does this apply to app running on Tomcat? is the process different?
(08 Aug '11, 17:10)
jenson
1
We have created a new question/answer for applications running on Tomcat
(10 Aug '11, 06:21)
kaysa ♦♦
|