Monday, June 13, 2011

Allowing web users to browse your local drive files

Solution:


           Create a soft link inside the file browser software folder or some where inside the WWWROOT folder.


For example,


           If you want to display the contents of the folder path '/Data/images' on your browser through Apache, just give the command in Linux,


           ln -s /Data/images images

          This will create a symbolic link here for the remote folder path.

          And make sure that the remote folder path (ie. here /Data/images) contains the read, execute (r-x) permission from the root folder /Data. Even the 'images' folder have the r-x permission when the /Data doesn't means then the files will not be displayed in browser. The permission level should be follows. (ie. read and execute is minimally required)

          /Data (r-x)
              |_images (r-x)



No comments:

Post a Comment