Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 25. Jun 2018, 15:42

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 15. Feb 2015, 02:07 
Offline

Joined: 15. Feb 2015, 02:03
Posts: 2
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


Top
 Profile  
 
PostPosted: 15. Feb 2015, 09:47 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10840
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


Top
 Profile  
 
PostPosted: 15. Feb 2015, 20:48 
Offline

Joined: 15. Feb 2015, 02:03
Posts: 2
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!!


Top
 Profile  
 
PostPosted: 15. Feb 2015, 22:54 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10840
Which operating system do you use?
Google is a good source how to create such a link...

Best, Michael


Top
 Profile  
 
PostPosted: 7. Apr 2016, 04:11 
Offline

Joined: 7. Apr 2016, 03:46
Posts: 2
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


Top
 Profile  
 
PostPosted: 7. Apr 2016, 05:14 
Offline

Joined: 7. Apr 2016, 03:46
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy