Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions




The Unofficial Ubuntu Starter Guide
Prev Home Next

Q: How to map URLs to folders outside /var/www/?

  1. Read General Notes
  2. Read How to install Apache HTTP Server for HTTP (Web) Server service?
  3. sudo gedit /etc/apache2/conf.d/alias
  4. Insert the following lines into the new file
    Alias /URL-path /location_of_folder/
    <Directory /location_of_folder/>
       Options Indexes FollowSymLinks
       AllowOverride All
       Order allow,deny
       Allow from all
  5. Save the edited file (sample)
  6. sudo /etc/init.d/apache2 restart
  7. http://localhost/URL-path
The Unofficial Ubuntu Starter Guide
Prev Home Next

  Published under the terms of the GNU General Public License Design by Interspire