Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Serving a folder of images
https://www.tinywebgallery.com/forum/viewtopic.php?f=4&t=3808
Page 1 of 1

Author:  bdr [ 15. Feb 2015, 02:07 ]
Post subject:  Serving a folder of images

I downloaded and installed TWG ... and have it working. My intention was to be able serve-up my existing archive of family photos and vidoes ... which are all stored on an attached NAS device ... with a mapped drive.

Ideally, I'd like to simply "point" TWG at this folder, and let it do it's work. But -- for obvious reasons -- I would also like TWG to access it in read-only mode -- making all thumbnails and such on the local drive/cache system.

Is this possible??

Thank you!!

bdr

Author:  TinyWebGallery [ 15. Feb 2015, 09:47 ]
Post subject:  Re: Serving a folder of images

Normally you can link to this folder. But it has to be a relative path or a sym link.

if a relative path does work the images are already outside the webroot so no one can access them. with a link you can add a .htaccess files which prevents reading from outside.

Best, Michael

Author:  bdr [ 15. Feb 2015, 20:48 ]
Post subject:  Re: Serving a folder of images

TinyWebGallery wrote:
Normally you can link to this folder. But it has to be a relative path or a sym link.

if a relative path does work the images are already outside the webroot so no one can access them. with a link you can add a .htaccess files which prevents reading from outside.

Best, Michael


Thank you Michael,

But, I am very new to this environment. So, I'm not sure how I would even accomplish what you are suggesting. Can you provide an example/syntax??

Thank you!!

Author:  TinyWebGallery [ 15. Feb 2015, 22:54 ]
Post subject:  Re: Serving a folder of images

Which operating system do you use?
Google is a good source how to create such a link...

Best, Michael

Author:  dxk3355 [ 7. Apr 2016, 04:11 ]
Post subject:  Re: Serving a folder of images

I'm trying the same thing.

The symbolic link to my folder isn't working. TWG doesn't even process it. I've changed the .htaccess file to include Options +FollowSymLinks at the top but it's still not seeing it.

In addition relative links aren't working either. I can go up a few directories but then the system crashes when I've put in ../../../media/

Lubuntu 15.x

Author:  dxk3355 [ 7. Apr 2016, 05:14 ]
Post subject:  Re: Serving a folder of images

Figured out the issue, I had to change the permissions for one of the folders in the path to the folder. This is an annoying Apache thing I think.

I ran
Code:
namei -m /media/dave/driveQuatro/Shared/Photos/
to get the permissions for all my directories

Code:
 drwxr-xr-x /
 drwxr-xr-x media
 drwxr-x--- dave
 drwxrwxrwx driveQuatro
 drwxrwxrwx Shared
 drwxrwxrwx Photos


I had to change the dave folder with chmod 755 to get the links to work. This have dave the read and execute permission that it needed.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/