I was assigned a task to redirect a folder with one of my site, Say you type a URL in you Web browser xyz.com and when you try to browse xyz.com/folder, it should display the content of the folder placed somewhere on the linux box.
This can be acheive by Directory Aliasing. what I did was in xyz.conf (located in /etc/httpd/conf.d) added the directory structure.
Alias /folder/ "/usr/folder/" <Directory "/usr/folder/"> AllowOverride None Order Allow,Deny Allow from All </Directory>
And then save the xyz.conf file and restarted the apache server. Then tried to access the xyz.com/folder.
what I got was
Forbidden You don't have permission to access /folder on this server.
Then I check on the internet and for a simple solution to my problem.
All I had to do was to add one more line to the xyz.conf file.
Alias /folder/ "/usr/folder/" <Directory "/usr/folder/"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride None Order Allow,Deny Allow from All </Directory>
This worked for me.