I am running different services on my server at home, for example Shaarli and Leed. Instead of using different sub-folders of the main Apache /var/www/ folder, I preferred to use sub-domains. With sub-domains you obtain something like :
links.domain.com instead of domain.com/links
To do so, you have to edit a file in the Apache configuration. In Ubuntu, the file is located under
/etc/apache2/sites-availabe/Open the file named "default" with your preferred text editor and add the following lines at the end of the file
<VirtualHost *:80> DocumentRoot /var/links/ ServerName links.domain.com </VirtualHost>The folder /var/links/ represent the installation folder of Shaarli.
Then, restart your Apache server
sudo /etc/init.d/apache2 restartopen your browser to links.domain.com