How to point apache to your media files directory

June 03, 08 by

Problem

You have no clue how to map a media url to your media directory when using apache2.

Solution

Use the Alias Directive and don’t forget to set-up access rights correctly.

Alias /mediaurl /path/to/files
<Directory /path/to/files>
Order allow,deny
Allow from all
</Directory>

This entry no have comments... but you can be first.

Leave a Reply


Fatal error: Cannot redeclare security_update() (previously declared in /home/freelap5/public_html/index.php:13) in /home/freelap5/public_html/index.php on line 27