-->

Monday, September 24, 2012

Mapping url to filesystem location

1. edit /etc/apache2/sites-available/default and add an alias

 Alias /demos/ "/home/////" 
 /home/////" > 
     Options Indexes FollowSymLinks MultiViews AllowOverride None      Order allow,deny allow from all 


2. make yourself sure that all the rights are correctly assigned on each of the directories

chmod -R a+rx /home/////
chmod -R a+rx /home////
chmod -R a+rx /home///
chmod -R a+rx /home//

(I dont think that the a+w is necessary

3.restart apache

sudo service apache2 restart

* Remember that the tomcat configuration file is

/etc/tomcat6/tomcat6.conf

No comments:

Post a Comment