I am using lamp on CentOS 6. Application code is written in CakePHP. Application files path is /var/www/html/my_app.Another file server is mounted with an Application Server. Mounted path on Application Server is /home/new1/fs_path/scanned/ which contain some folders like ajain.I am uploading the files on File Server through SSH. However, I am not able to show the documents because I am not saving the files on application server. If the file would be on local application server, I will be able to access it through http:// localhost/my_app/app/webroot/scanned/ajain/abc.jpg. But instead of it, if the file exists on file server. How do I access it through http path.Possible solution I tried is to change the document root path from /var/www/html to /home/new1/fs_path/scanned/. But this forced me to put my application code on the later path (on file server). Which is not making sense for me.I also tried to use JkMount command in httpd.conf file using jkmod module, but didn't get any success.Please suggest the solution. Any help would be appreciated.
Access Remote files through http path
centos;mount;php
If I understand correctly, you need apache's mod_alias module. If that is the case, in your virtual host configuration you'll add:Alias /scanned  /home/new1/fs_path/scanned <Directory /home/new1/fs_path/scanned>    Order allow,deny    Allow from all</Directory>