Changing the URL in Linux

From KnowledgeTree Community

Jump to: navigation, search

Contents

Steps to perform

The following steps should assist in changing the KnowledgeTree URL. (Example from "http://localhost/knowledgetree" back to "http://localhost". (This method is recommended if KnowledgeTree is the only web application setup on your server)


A. Change the Root URL Setting in KnowledgeTree

1. Log into KnowledgeTree as administrator


2. Navigate to the Root URL Setting
Administration  » System Configuration  » General Settings


3. Delete the current path and leave the box blank.

alt text


4. Save Config Settings



B. Change the Apache Root Directory

1. Open the following file in a text editor:
/etc/apache2/sites-enabled/000-default


2. Locate the following line:

DocumentRoot /var/www


3. Configure DocumentRoot to the following path:

DocumentRoot /usr/share/knowledgetree


6. Save and close the file



C. Disable the Default Virtual Host

1. Open the following file in a text editor:
/etc/apache2/sites-enabled/knowledgetree


2. Locate the following lines:

Alias /knowledgetree /usr/share/knowledgetree
<Directory /usr/share/knowledgetree/>
 #Options Indexes FollowSymLinks MultViews
   Order deny,allow
   AllowOverride All
   Allow from all
 </Directory>


3. Comment them all out:

# Alias /knowledgetree /usr/share/knowledgetree
# <Directory /usr/share/knowledgetree/>
# Options Indexes FollowSymLinks MultViews
#   Order deny,allow
#   AllowOverride All
#   Allow from all
# </Directory>


4. Save and close the file


5. Restart Apache

sudo /etc/init.d/apache2 restart



Applies to Version/s

Personal tools